Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TIFF Warning throws exception #10

Open
trikko opened this issue Feb 12, 2013 · 3 comments
Open

TIFF Warning throws exception #10

trikko opened this issue Feb 12, 2013 · 3 comments

Comments

@trikko
Copy link

trikko commented Feb 12, 2013

Picture taken using scanner won't load... It works works with "convert" and other imagemagick based tools (they give the same warning) but dmagick thrown exception. Is this the expected behaviour?

dmagick.Exception.CoderException@dmagick/Image.d(2285): Auto-corrected former TIFF subsampling values [2,2] to match subsampling values inside JPEG compressed data [2,1]. `JPEGFixupTagsSubsamplingSec' @ warning/tiff.c/TIFFWarnings/768

I can't attach TIFF image here...

@MikeWey
Copy link
Owner

MikeWey commented Feb 12, 2013

I think this needs to be changed so that DMagick doesn't throw on Warnings.

ImageMagick's Error should map to Exception and FatalError to Error.
We will need to think about a good way to report the warnings, or at least make them accessible.

@trikko
Copy link
Author

trikko commented Feb 12, 2013

Why don't you add a method to register a listener for warnings?

@MikeWey
Copy link
Owner

MikeWey commented Feb 12, 2013

Good Idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants