[solved] Convert command & TIFF

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
Ryan79
Posts: 2
Joined: 2013-01-14T16:59:22-07:00
Authentication code: 6789

[solved] Convert command & TIFF

Post 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!
Last edited by Ryan79 on 2013-01-15T14:10:00-07:00, edited 1 time in total.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert command & TIFF

Post by fmw42 »

sounds like a corrupt tif file
Ryan79
Posts: 2
Joined: 2013-01-14T16:59:22-07:00
Authentication code: 6789

Re: Convert command & TIFF

Post 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! :)
Post Reply