Convert tiff with jpg compression to 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
patricklarsson
Posts: 1
Joined: 2013-10-28T07:51:40-07:00
Authentication code: 6789

Convert tiff with jpg compression to jpg

Post by patricklarsson »

Hi! Im trying to convert a tif file that has been compressed to jpeg quality and saved with Photoshop.

My tif file can be found here: http://ut.patricklarsson.nu/example.tif

Convert -version

Code: Select all

Version: ImageMagick 6.8.7-0 2013-09-19 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: bzlib jng jpeg lcms png png tiff xml zlib
I downloaded and installed ImageMagick following these instruction for OS X found here: http://www.imagemagick.org/script/binary-releases.php not the macport install.

This is the command im running:
convert /Users/patrick/Desktop/example.tif ~/Desktop/test.jpeg

And this is the error it returns:

Code: Select all

convert /Library/WebServer/Documents/ut/example.tif ~/Desktop/test.jpg
convert: Unknown field with tag 347 (0x15b) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/838.
convert: Incompatible type for "RichTIFFIPTC"; tag ignored. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/838.
convert: JPEG compression support is not configured. `/Library/WebServer/Documents/ut/example.tif' @ error/tiff.c/TIFFErrors/563.
convert: Unknown field with tag 347 (0x15b) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/838.
convert: Incompatible type for "RichTIFFIPTC"; tag ignored. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/838.
convert: JPEG compression support is not configured. `/Library/WebServer/Documents/ut/example.tif' @ error/tiff.c/TIFFErrors/563.
convert: compression not supported `/Library/WebServer/Documents/ut/example.tif' @ error/tiff.c/ReadTIFFImage/1130.
convert: no images defined `/Users/patrick/Desktop/test.jpg' @ error/convert.c/ConvertImageCommand/3127.
If I save the tif file without any compression the convert works perfect, thanks in advance!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert tiff with jpg compression to jpg

Post by fmw42 »

It works fine for me on IM 6.8.7.3 Q16 Mac OSX


convert example.tif tmp.jpg
convert: Incompatible type for "RichTIFFIPTC"; tag ignored. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/842.

All I get is a warning for an unknown tag which is ignored.

What version of libjpeg and libtiff are you using? Perhaps you need a more current version or some other associated delegate.


I installed all my delegates using MacPorts but installed IM from source.


convert -version
Version: ImageMagick 6.8.7-3 2013-10-25 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC
Features: DPC
Delegates: bzlib fftw fontconfig freetype gslib jbig jng jp2 jpeg lcms lqr ltdl lzma openexr png ps png tiff x xml zlib
Post Reply