Image converting to black

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
gattu_koli
Posts: 10
Joined: 2013-01-24T21:44:53-07:00
Authentication code: 6789

Image converting to black

Post by gattu_koli »

Hi,

I am getting black image while converting tiff to jpg. Image opens fine in windows.

Getting below error,

convert.exe: Depreciated and troublesome old-style JPEG compression mode, please
convert to new-style JPEG compression and notify vendor of writing software. `O
JPEGSetupDecode' @ warning/tiff.c/TIFFWarnings/824.
convert.exe: Improper call to JPEG library in state 0. `LibJpeg' @ error/tiff.c/
TIFFErrors/562.
convert.exe: Depreciated and troublesome old-style JPEG compression mode, please
convert to new-style JPEG compression and notify vendor of writing software. `O
JPEGSetupDecode' @ warning/tiff.c/TIFFWarnings/824.
convert.exe: Improper call to JPEG library in state 0. `LibJpeg' @ error/tiff.c/
TIFFErrors/562.

Image URL - http://www.mediafire.com/?8d4si0sy311o4x3
http://www.mediafire.com/?2xkp75am361l5pq

What would be the issue. We have huge data to be converted into jpg. Kindly suggest.
Imagemagick version - 6.8.0-10 OS windows

Regards
Last edited by gattu_koli on 2013-06-25T05:30:25-07:00, edited 1 time in total.
gattu_koli
Posts: 10
Joined: 2013-01-24T21:44:53-07:00
Authentication code: 6789

Re: Image converting to black

Post by gattu_koli »

Irfanview convert the images successfully.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Image converting to black

Post by snibgo »

We have seen these images before.

As Irfanview can read them, I suggest you use it to batch convert the files.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Image converting to black

Post by fmw42 »

Your error messages are all pointing to some ancient jpg compression used when creating the tiff files. You should either disable jpg compression or use some other compression when creating your tiff files. Apparently libjpeg, which IM uses to handle the jpg compression, does not know what to do with it. Thus IM will not be able to process these files. If you have some other tool that will read them, then you should use that.

By the way, Photoshop and Mac Preview cannot open them either, though GraphicConverter on the Mac can open it.
Post Reply