Convert tiff to jpg produces all green jpg

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
lalder
Posts: 5
Joined: 2013-09-11T08:30:00-07:00
Authentication code: 6789

Convert tiff to jpg produces all green jpg

Post by lalder »

We have a ScanOptics Scanner. They include tages in the TIFF that are not registered.
I need to break the TIFF into single JPG's ie convert tifftest.tif a.jpg produces a lot of green jpg's

https://dl.dropboxusercontent.com/u/13374/Tifftest.TIF to test tiff
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Convert tiff to jpg produces all green jpg

Post by snibgo »

According to both Gimp and "identify -verbose", all the images are green. What is the problem?
snibgo's IM pages: im.snibgo.com
lalder
Posts: 5
Joined: 2013-09-11T08:30:00-07:00
Authentication code: 6789

Re: Convert tiff to jpg produces all green jpg

Post by lalder »

Because the TIFF is not green. it is white with a pink number on it.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Convert tiff to jpg produces all green jpg

Post by snibgo »

What software shows white with a pink number?

Perhaps the corruptions and "Depreciated and troublesome old-style JPEG compression mode" in the images cause Gimp and IM to misread it. Perhaps you can update your scanner software, or save the scanned result as a different (non-faulty) format.
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: Convert tiff to jpg produces all green jpg

Post by fmw42 »

Your tiff file gives an error that it is an old style JPG compression and IM does not know how to deal with it.


convert Tifftest.TIF[0] show:
convert: Unknown field with tag 34116 (0x8544) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/838.
convert: Depreciated and troublesome old-style JPEG compression mode, please convert to new-style JPEG compression and notify vendor of writing software. `OJPEGSetupDecode' @ warning/tiff.c/TIFFWarnings/838.
convert: Corrupt SOS marker in JPEG data. `OJPEGReadHeaderInfoSecStreamSos' @ error/tiff.c/TIFFErrors/563.
lalder
Posts: 5
Joined: 2013-09-11T08:30:00-07:00
Authentication code: 6789

Re: Convert tiff to jpg produces all green jpg

Post by lalder »

Updating the Scanner Software is not an option. Too many are scanned with the current software (7 or more years).
The original reason is we are shifting from windows and a supplied OCX (for viewing) to the Mac Platform.
The OCX wont work on MAC. Also the OCX is dodgie on Winders-8 (yes I know it's misspelled )
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Convert tiff to jpg produces all green jpg

Post by snibgo »

All I can suggest is: if you have software that can read these old corrupt files, then convert them to non-corrupt files while you still can.
snibgo's IM pages: im.snibgo.com
lalder
Posts: 5
Joined: 2013-09-11T08:30:00-07:00
Authentication code: 6789

Re: Convert tiff to jpg produces all green jpg

Post by lalder »

Yea I had thought of that, only problem is the old software will read but does not save.
Fun fun!!

Thanks for all you all's input!!
lalder
Posts: 5
Joined: 2013-09-11T08:30:00-07:00
Authentication code: 6789

Re: Convert tiff to jpg produces all green jpg

Post by lalder »

snibgo wrote:What software shows white with a pink number?

Perhaps the corruptions and "Depreciated and troublesome old-style JPEG compression mode" in the images cause Gimp and IM to misread it. Perhaps you can update your scanner software, or save the scanned result as a different (non-faulty) format.
IrfanView
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Convert tiff to jpg produces all green jpg

Post by snibgo »

Ah, yes, IrfanView seems to work. And it can save the multi-page tiff as another one that IM doesn't complain about, and IrfanView even has a batch conversion facility.
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: Convert tiff to jpg produces all green jpg

Post by fmw42 »

If you are already on Mac, then get for example GraphicConverter. It was able to read and view your image as pink letters with white background. You can then use it to convert to another format like png.
Post Reply