Skip to content

Improved error handling in image codecs.#25975

Merged
asmorkalov merged 1 commit intoopencv:4.xfrom
asmorkalov:as/bmp_error_check
Aug 1, 2024
Merged

Improved error handling in image codecs.#25975
asmorkalov merged 1 commit intoopencv:4.xfrom
asmorkalov:as/bmp_error_check

Conversation

@asmorkalov
Copy link
Copy Markdown
Contributor

@asmorkalov asmorkalov commented Jul 31, 2024

Closes #25969

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

@mshabunin
Copy link
Copy Markdown
Contributor

Just note: we have incosistency in imwrite error handling - in some cases it throws an exception, in others returns false.

@asmorkalov asmorkalov merged commit b9b2d55 into opencv:4.x Aug 1, 2024
@asmorkalov asmorkalov mentioned this pull request Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When disk is full ,imwrite will return true,not false.And no Exception..

2 participants