This project has moved and is read-only. For the latest updates, please go here.

Old-style JPEG compression

Jul 22, 2013 at 4:12 PM

How to configure Magick.NET to support the old-style jpeg compression?

I'm trying to extract a page from a multi-page tiff and save it as a separate single-page tiff file. However this conversion produces a completely empty image (black background).
I tried to perform the conversion via command line calling ImageMagick directly and I received the following error:
convert.exe: Depreciated and troublesome old-style JPEG compression mode, please convert to new-style JPEGcompression and notify vendor of writing software. `OJPEGSetupDecode' @ warning/tiff.c/TIFFWarnings/824.convert.exe: Improper call to JPEG library in state 0. `LibJpeg' @ error/tiff.c/TIFFErrors/562.
Is there a way around this?

Jul 22, 2013 at 7:25 PM
Edited Jul 22, 2013 at 9:38 PM
You are actually receiving a warning and an error. The message Improper call to JPEG library in state 0 is an error and causes ImageMagick to stop reading the image. I would however expect Magick.NET to raise an exception. Only warnings will be ignored during a read operation. Would you mind sharing your image with me and post a code example so I can investigate this? You can also contact me trough codeplex if you don't want to post your image online.