Page 1 of 1

Convert tiff to jpg produces all green jpg

Posted: 2013-09-11T08:44:13-07:00
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

Re: Convert tiff to jpg produces all green jpg

Posted: 2013-09-11T09:08:25-07:00
by snibgo
According to both Gimp and "identify -verbose", all the images are green. What is the problem?

Re: Convert tiff to jpg produces all green jpg

Posted: 2013-09-11T09:21:59-07:00
by lalder
Because the TIFF is not green. it is white with a pink number on it.

Re: Convert tiff to jpg produces all green jpg

Posted: 2013-09-11T09:43:26-07:00
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.

Re: Convert tiff to jpg produces all green jpg

Posted: 2013-09-11T10:14:47-07:00
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.

Re: Convert tiff to jpg produces all green jpg

Posted: 2013-09-11T10:33:19-07:00
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 )

Re: Convert tiff to jpg produces all green jpg

Posted: 2013-09-11T11:12:13-07:00
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.

Re: Convert tiff to jpg produces all green jpg

Posted: 2013-09-11T11:22:59-07:00
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!!

Re: Convert tiff to jpg produces all green jpg

Posted: 2013-09-11T11:53:25-07:00
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

Re: Convert tiff to jpg produces all green jpg

Posted: 2013-09-11T12:11:28-07:00
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.

Re: Convert tiff to jpg produces all green jpg

Posted: 2013-09-11T12:19:46-07:00
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.