Enable TIFF support for ImageMagick 6.2.5 version

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?".
csrkk
Posts: 5
Joined: 2012-03-29T09:20:46-07:00
Authentication code: 8675308

Enable TIFF support for ImageMagick 6.2.5 version

Post by csrkk »

Hello,

Wondering if anyone can help on this. When we initially installed ImageMagic 6.2.5, it seems the team did not choose the TIFF support. Now the end users would like to turn it on and we do not have any clue how to do that. The initial team who installed is no more in the company.

Can anyone direct us to how to enable TIFF support and what would be the process to do that.

Thank you very much for your help in advance.

Thanks,
Kalyan
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Enable TIFF support for ImageMagick 6.2.5 version

Post by fmw42 »

Your version of IM is ancient. It is over 500 versions old. You really should upgrade. In any case, you would need to either install the libtiff delegate library and then reinstall from source or just install the current binary. Either way, you have to reinstall, I believe. I don't know of any other ways. But I will defer to the IM developers if there are other ways.

see
http://www.imagemagick.org/script/binary-releases.php
http://www.imagemagick.org/download/www ... .html#unix
http://www.imagemagick.org/script/advan ... lation.php
http://www.imagemagick.org/download/delegates/

P.S. How do you know that you do not have tiff support?

What do you get from:

convert -list format

Does it show:

TIFF* TIFF rw+ Tagged Image File Format (LIBTIFF, Version 3.9.5)

Or

What do you get from :

convert -list configure

See if there is any line (possibly starting with DELEGATES, but perhaps not with your old version) that contains things like:

bzlib fontconfig freetype gs jpeg lcms2 png tiff x11 xml zlib


What happens when you try

convert image.tiff image.gif

or

convert image.gif image.tif
csrkk
Posts: 5
Joined: 2012-03-29T09:20:46-07:00
Authentication code: 8675308

Re: Enable TIFF support for ImageMagick 6.2.5 version

Post by csrkk »

Thanks for your response. To answer for the first question, we do not see any TIFF related formats in the output.
TEXT* rw+ Text
TGA* rw+ Truevision Targa image
TILE* r-- Tile image with a texture
TIM* r-- PSX TIM
TTC* --- TrueType font collection
TTF* --- TrueType font
TXT* rw+ Text

When we use the configure, we get the following output:
Name Value
-------------------------------------------------------------------------------
CC /usr/local/bin/gcc
CFLAGS -g -O2 -Wall
CONFIGURE ./configure --without-tiff --without-perl --enable-static --disable-shared --without-threads
COPYRIGHT Copyright (C) 1999-2005 ImageMagick Studio LLC
CPPFLAGS -I/usr/local/include
CXX /usr/local/bin/g++
CXXFLAGS
DEFS -DHAVE_CONFIG_H
DISTCHECK_CONFIG_FLAGS --without-tiff --without-perl --enable-static --disable-shared --without-threads 'CC=/usr/local/bin/gcc' 'CXX=/usr/local/bin/g++'
EXEC-PREFIX /usr/local
HOST powerpc-ibm-aix5.3.0.0
LDFLAGS -L/usr/local/lib
LIB_VERSION 0x625
LIB_VERSION_NUMBER 6,2,5,5
LIBS -lMagick -ljpeg -lpng -lXext -lXt -lSM -lICE -lX11 -lbz2 -lz -lm
NAME ImageMagick
PCFLAGS
PREFIX /usr/local
QuantumDepth 16
RELEASE_DATE 08/04/06
VERSION 6.2.5
WEBSITE http://www.imagemagick.org

Also, we tried to convert tiff to gif, but got the below error:
convert: no decode delegate for this image format 'image.tiff'.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Enable TIFF support for ImageMagick 6.2.5 version

Post by fmw42 »

CONFIGURE ./configure --without-tiff --without-perl --enable-static --disable-shared --without-threads
You have told IM above to disable tiff.

Remove the part in red in your ./configure command and recompile IM. That is use

./configure --without-perl --enable-static --disable-shared --without-threads
make clean
make
make install

But if you are going to re-install, you might as well upgrade. See the links I sent above. You can install the binary (compiled with all the basic delegates) and get what you need if your platform is consistent with the IM binaries. Otherwise, you need to be sure you have the delegate libraries you want, such as tiff, png, jpg, etc or reinstall them. Then install IM from source.
LIBS -lMagick -ljpeg -lpng -lXext -lXt -lSM -lICE -lX11 -lbz2 -lz -lm
This lists your delegates that IM sees, such as jpg, png, etc. But as above, you have told IM not to use tiff, so I believe that it will not show here. So you need to check if you have the tiff delegate library or reinstall it, if you are going to use IM source code rather than the binary.
csrkk
Posts: 5
Joined: 2012-03-29T09:20:46-07:00
Authentication code: 8675308

Re: Enable TIFF support for ImageMagick 6.2.5 version

Post by csrkk »

Excellent... Thank you very much for your valuable information.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Enable TIFF support for ImageMagick 6.2.5 version

Post by fmw42 »

PS You have to cd to the IM source code download folder before you can run those commands from the terminal. If you do not have that any longer, then you need to download and install a newer version or if you can find an older version then you can use that if you want.
sharifu
Posts: 5
Joined: 2012-05-01T07:53:48-07:00
Authentication code: 13

Re: Enable TIFF support for ImageMagick 6.2.5 version

Post by sharifu »

I have followed this and still i don't have tiff
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Enable TIFF support for ImageMagick 6.2.5 version

Post by fmw42 »

what do you get from running

convert -list configure

See the line starting with DELEGATES. Does it include tiff? Here is mine:


DELEGATES bzlib fftw fontconfig freetype gs jpeg jng jp2 lcms2 lqr openexr pango png rsvg tiff x11 xml zlib


If you do not have tiff listed, then either IM could not find it or you have not installed the libtiff delegate

What version of IM are you now using? Was it installed from binary or source. If from source, you must install all the needed delegates prior to installing IM.

convert -version

what does that say.
sharifu
Posts: 5
Joined: 2012-05-01T07:53:48-07:00
Authentication code: 13

Re: Enable TIFF support for ImageMagick 6.2.5 version

Post by sharifu »

fmw42 wrote:what do you get from running

convert -list configure

See the line starting with DELEGATES. Does it include tiff? Here is mine:


DELEGATES bzlib fftw fontconfig freetype gs jpeg jng jp2 lcms2 lqr openexr pango png rsvg tiff x11 xml zlib


If you do not have tiff listed, then either IM could not find it or you have not installed the libtiff delegate

What version of IM are you now using? Was it installed from binary or source. If from source, you must install all the needed delegates prior to installing IM.

convert -version

what does that say.
it is part of alfresco

Code: Select all

[root@alfrescotest bin]# pwd
/opt/alfresco/common/bin

Code: Select all

root@alfrescotest bin]# ./convert -list configure

Path: /opt/alfresco/common/lib/ImageMagick-6.5.1/config/configure.xml

Name          Value
-------------------------------------------------------------------------------
CC            gcc -std=gnu99
CFLAGS        -I/opt/alfresco/common/include -m64 -fPIC -Wall -W -pthread
CONFIGURE     ./configure  '--prefix=/opt/alfresco/common' '--with-perl=no' '--with-jpeg=yes' '--with-tiff=yes' 'CC=gcc' 'CFLAGS=-I/opt/alfresco/common/include -m64 -fPIC' 'LDFLAGS=-L/opt/alfresco/common/lib' 'CPPFLAGS='
COPYRIGHT     Copyright (C) 1999-2009 ImageMagick Studio LLC
CPPFLAGS      -I/opt/alfresco/common/include/ImageMagick
CXX           g++
CXXFLAGS      -g -O2 -Wall -W -pthread
DEFS          -DHAVE_CONFIG_H
DELEGATES     freetype jpeg png wmf zlib tiff
DISTCHECK_CONFIG_FLAGS 'CC=gcc' 'CFLAGS=-I/opt/alfresco/common/include -m64 -fPIC' 'CPPFLAGS=' 'LDFLAGS=-L/opt/alfresco/common/lib' --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-fontconfig=no --with-gslib=no --with-fontpath= --with-rsvg=no --with-xml=no
EXEC-PREFIX   /opt/alfresco/common
HOST          x86_64-unknown-linux-gnu
LDFLAGS       -L/opt/alfresco/common/lib -L/opt/alfresco/common/lib -L/opt/alfresco/common/lib -Wl,--rpath -Wl,/opt/alfresco/common/lib -lfreetype -lz
LIB_VERSION   0x651
LIB_VERSION_NUMBER 6,5,1,0
LIBS          -lMagickCore -lfreetype -ljpeg -lz -lm -lpthread 
NAME          ImageMagick
PCFLAGS       
PREFIX        /opt/alfresco/common
QuantumDepth  16
RELEASE_DATE  2010-07-01
VERSION       6.5.1
WEBSITE       http://www.imagemagick.org

Code: Select all

[root@alfrescotest bin]# ./convert -version
Version: ImageMagick 6.5.1-0 2010-07-01 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC

this one i installed from source

Code: Select all

convert -list configure

Path: /usr/local/lib/ImageMagick-6.7.6/config/configure.xml

Name          Value
-------------------------------------------------------------------------------
CC            gcc -std=gnu99 -std=gnu99
CFLAGS        -g -O2 -Wall
CODER_PATH    /usr/local/lib/ImageMagick-6.7.6/modules-Q16/coders
CONFIGURE     ./configure  '--without-perl' '--enable-static' '--disable-shared' '--without-threads'
CONFIGURE_PATH /usr/local/etc/ImageMagick/
COPYRIGHT     Copyright (C) 1999-2012 ImageMagick Studio LLC
CPPFLAGS      -I/usr/local/include/ImageMagick
CXX           g++
CXXFLAGS      -g -O2
DEFS          -DHAVE_CONFIG_H
DELEGATES     x11
DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-gslib=no --with-fontpath= --with-wmf=no --with-perl=no
DOCUMENTATION_PATH /usr/local/share/doc/ImageMagick-6.7.6
EXEC-PREFIX   /usr/local
EXECUTABLE_PATH /usr/local/bin
FEATURES      
FILTER_PATH   /usr/local/lib/ImageMagick-6.7.6/modules-Q16/filters
HOST          x86_64-unknown-linux-gnu
INCLUDE_PATH  /usr/local/include/ImageMagick
LDFLAGS       -L/usr/local/lib 
LIB_VERSION   0x676
LIB_VERSION_NUMBER 6,7,6,8
LIBRARY_PATH  /usr/local/lib/ImageMagick-6.7.6
LIBS          -lMagickCore -lX11 -lm -lgomp 
NAME          ImageMagick
PCFLAGS       
PREFIX        /usr/local
QuantumDepth  16
RELEASE_DATE  2012-05-01
SHARE_PATH    /usr/local/share/ImageMagick-6.7.6
SVN_REVISION  7710
TARGET_CPU    x86_64
TARGET_OS     linux-gnu
TARGET_VENDOR unknown
VERSION       6.7.6
WEBSITE       http://www.imagemagick.org

Path: [built-in]

Name          Value
-------------------------------------------------------------------------------
NAME          ImageMagick

Code: Select all

[root@alfrescotest bin]# convert -version
Version: ImageMagick 6.7.6-8 2012-05-01 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features:

I have also downloaded both version of tiff delegates compiled and installed but still nothing
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Enable TIFF support for ImageMagick 6.2.5 version

Post by fmw42 »

Your first one shows delegates include tiff. Just recompile without --without tiff. The second one shows delegates of only x11. So it has no other image delegates. You need to install delegates for at least tif, gif,png, jpg and then recompile IM from source.

See
http://www.imagemagick.org/download/delegates/
sharifu
Posts: 5
Joined: 2012-05-01T07:53:48-07:00
Authentication code: 13

Re: Enable TIFF support for ImageMagick 6.2.5 version

Post by sharifu »

fmw42 wrote:Your first one shows delegates include tiff. Just recompile without --without tiff. The second one shows delegates of only x11. So it has no other image delegates. You need to install delegates for at least tif, gif,png, jpg and then recompile IM from source.

See
http://www.imagemagick.org/download/delegates/

if i was to compile the delegates i would just run ./configure on its own and the same for IM after?

there are different named delegates of the same type, so which one would i have to download and compile?

I would like freetype jpeg png wmf zlib tiff
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Enable TIFF support for ImageMagick 6.2.5 version

Post by fmw42 »

sharifu wrote:
fmw42 wrote:Your first one shows delegates include tiff. Just recompile without --without tiff. The second one shows delegates of only x11. So it has no other image delegates. You need to install delegates for at least tif, gif,png, jpg and then recompile IM from source.

See
http://www.imagemagick.org/download/delegates/

if i was to compile the delegates i would just run ./configure on its own and the same for IM after?

there are different named delegates of the same type, so which one would i have to download and compile?

I would like freetype jpeg png wmf zlib tiff

Each delegate is basically installed the same
download the file and decompress (multiple delegates exist simpy with different compressions, so use whichever you can decompress -- I generally use the .tar.bz2, but the other is fine also if you can decompress it)
cd to the folder
read any README instructions or INSTALL instruction and follow them. If no instructions, then try
./configure
make
(sudo) make install

sudo for Mac OSX

Then do the same for the IM version you want preferably the current one.

see
http://www.imagemagick.org/download/www ... .html#unix
http://www.imagemagick.org/script/advan ... lation.php
csrkk
Posts: 5
Joined: 2012-03-29T09:20:46-07:00
Authentication code: 8675308

Re: Enable TIFF support for ImageMagick 6.2.5 version

Post by csrkk »

fmw42 wrote:PS You have to cd to the IM source code download folder before you can run those commands from the terminal. If you do not have that any longer, then you need to download and install a newer version or if you can find an older version then you can use that if you want.
Hello,

So if we do not find "configure" under bin directory, should we download latest IM version? or is there any way that we can get this?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Enable TIFF support for ImageMagick 6.2.5 version

Post by fmw42 »

Not the /bin directory, but the directory where you have downloaded the IM source code. you need to check config.log to see if errors. Just run

./configure
make
make install

check the terminal while running ./configure and see if what it reports about the tiff configuration. Or check the config.log afterwards to see if errors regarding tiff.
csrkk
Posts: 5
Joined: 2012-03-29T09:20:46-07:00
Authentication code: 8675308

Re: Enable TIFF support for ImageMagick 6.2.5 version

Post by csrkk »

Searched entire folder but could not find any file with name "configure". Can I download the latest IM version, extract this file and place it in somewhere to perform this step?
Post Reply