Page 1 of 1

[solved] Convert command & TIFF

Posted: 2013-01-14T17:10:55-07:00
by Ryan79
Hello all :)

did a search on the forum, found something close to this issue.. but the person was running it on a Mac.

System is Ubuntu Server 12.04LTS

running a convert command from bash command line:
# convert ./image.tif -sample 50% ./compressed/imagecomp.tif

error comes back :
convert: image.tif: Can not read TIFF directory. `TIFFFetchDirectory' @ error/tiff.c/TIFFErrors/496.
convert: image.tif: Failed to ready directory at offset 0. `TIFFReadDirectory' @ error/tiff.c/TIFFErrors/496.
convert: missing an image filename `./compressed/imagecomp.tif' @ error/convert.c/ConvertImageCommand/3011.

ran a convert -list configure and I have tiff listed under DELEGATES
however, doing an identify -verbose image.tif comes back with the same first two errors listed above (except that it says identify: instead of convert:)

I've got libtiff-dev and libtiff-tools installed

Any ideas on how to fix this issue??

Thanks for the help!

Re: Convert command & TIFF

Posted: 2013-01-14T20:15:25-07:00
by fmw42
sounds like a corrupt tif file

Re: Convert command & TIFF

Posted: 2013-01-15T14:09:25-07:00
by Ryan79
looks like you were correct fmw42, did some testing with the tif file the script pulled... and it was corrupted. pulled the image again and the convert command worked fine. Thanks! :)