Moving from one server to another. Image Magick problem.

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
Sonya*

Moving from one server to another. Image Magick problem.

Post by Sonya* »

Hello,

i am moving a project from one server to another (both are Debian). It is php script which executes with exec($cmd); an ImageMagick command. On the new server the generated images look significantly different to the old one.

The first problem is, that there are a very large spaces between the single -labels. Secondly, the generated image seems not to use RGB (-colorspace RGB ) since colors look completely different.

I have compared ImageMagick version on both servers:

Code: Select all

convert -version
Both server output the same version

Code: Select all

Version: ImageMagick 6.2.4 02/10/07 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2005 ImageMagick Studio LLC
Same version but very different output. What can be the reason for it? How can I compare ImageMagick installations else? Is there any config that I have to compare and edit? What server components can cause different output?

Thank you for your help,
Sonya
Sonya*

Re: Moving from one server to another. Image Magick problem.

Post by Sonya* »

I was able to figure out at least 3 missing files on my new server:

Code: Select all

/usr/lib/libMagickCore.so
/usr/lib/libMagickWand.so
/usr/lib/ImageMagick-6.4.2/modules-Q16/coders/label.so
Can somebody tell me how can I install the missing files? I am not very Linux experienced.

Thank you,
Sonya
Sonya*

Re: Moving from one server to another. Image Magick problem.

Post by Sonya* »

Hello,

I need ImageMagick 6.4.2 for installation but I am not able to find the tar for the version on the public ftp. Please help me! I am not wise-versed with Linux and am not sure if the newer version will work. I just need the same configuration as on the old server and it is 6.4.2 with some additional modules listed above.

Where can I get 6.4.2? Any help is appreciated.

Thank you,
Sonya
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Moving from one server to another. Image Magick problem.

Post by magick »

Legacy releases of ImageMagick are available here: http://sourceforge.net/projects/ImageMagick/.
Sonya*

Re: Moving from one server to another. Image Magick problem.

Post by Sonya* »

Thank you! I have downloaded the version 6.4.2 from here http://ovh.dl.sourceforge.net/sourcefor ... -10.tar.gz

I tryed to configure it with

Code: Select all

./configure --prefix=/usr --with-modules --with-png=yes --with-lcms=yes --with-tiff=yes --with-freetype=yes --with-jpeg=yes  --with-lcms=yes --with-x=yes --enable-shared --disable-static --without-magick-plus-pus
But it seems to ignore --with in the configure:
ImageMagick is configured as follows. Please verify that this configuration
matches your expectations.

Code: Select all

Host system type: i686-pc-linux-gnu
Build system type: i686-pc-linux-gnu

                  Option                        Value
-------------------------------------------------------------------------------
Shared libraries  --enable-shared=yes           yes
Static libraries  --enable-static=no            no
Module support    --with-modules=yes            yes
GNU ld            --with-gnu-ld=yes             yes
Quantum depth     --with-quantum-depth=16       16
High Dynamic Range Imagery
                  --enable-hdri=no              no

Delegate Configuration:
BZLIB             --with-bzlib=yes              no
DJVU              --with-djvu=no                no
DPS               --with-dps=yes                no
FlashPIX          --with-fpx=yes                no
FontConfig        --with-fontconfig=no          no
FreeType          --with-freetype=yes           no
GhostPCL          None                          pcl6 (unknown)
GhostXPS          None                          gxps (unknown)
Ghostscript       None                          gs (unknown)
result_ghostscript_font_dir='none'
Ghostscript fonts --with-gs-font-dir=default
Ghostscript lib   --with-gslib=yes              no
Graphviz          --with-gvc=yes                no
JBIG              --with-jbig=yes               no
JPEG v1           --with-jpeg=yes               no
JPEG-2000         --with-jp2=yes                no
LCMS              --with-lcms=yes               no
LQR               --with-lqr=no         no
Magick++          --with-magick-plus-plus=yes   no (failed tests)
OpenEXR           --with-openexr=yes            no
PERL              --with-perl=yes               /usr/bin/perl
PNG               --with-png=yes                no
RSVG              --with-rsvg=no                no
TIFF              --with-tiff=yes               no
result_windows_font_dir='none'
Windows fonts     --with-windows-font-dir=
WMF               --with-wmf=yes                no
X11               --with-x=yes                  no
XML               --with-xml=no         no
ZLIB              --with-zlib=yes               yes

X11 Configuration:
      X_CFLAGS        =
      X_PRE_LIBS      =
      X_LIBS          =
      X_EXTRA_LIBS    =

Options used to compile and link:
  PREFIX          = /usr
  EXEC-PREFIX     = /usr
  VERSION         = 6.4.2
  CC              = gcc
  CFLAGS          = -g -O2 -Wall -W -pthread
  MAGICK_CFLAGS   = -g -O2 -Wall -W -pthread
  CPPFLAGS        = -I/usr/include/ImageMagick
  PCFLAGS         =
  DEFS            = -DHAVE_CONFIG_H
  LDFLAGS         =
  MAGICK_LDFLAGS  = -L/usr/lib
  LIBS            = -lMagickCore -lz -lm -lpthread
  CXX             = g++
  CXXFLAGS        = -pthread
No libs are configured. How can I install it with libs I needed?

Thank you,
Sonya
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Moving from one server to another. Image Magick problem.

Post by magick »

Sonya*

Re: Moving from one server to another. Image Magick problem.

Post by Sonya* »

Thank you, it is not easy to understand for Linux newbies. But I have managed it. :D

Step-by-step solution for the very beginners:

# get actual version of ImageMagick
convert -version

# uninstall old version of ImageMagick
apt-get remove imagemagick

# change to tmp
cd /tmp

# get new version of ImageMagick
wget http://ovh.dl.sourceforge.net/sourcefor ... -10.tar.gz
# unpack files
tar xvfz ImageMagick-6.4.2-1.tar.gz
#Change the directory to the newly created ImageMagick directory
cd ImageMagick-6.4.2
# configure it:
./configure --prefix=/usr

# see if PNG and Freetype are set to no after configuration, if yes
make distclean

# Install PNG Support
cd /tmp
wget http://ovh.dl.sourceforge.net/sourcefor ... .35.tar.gz
cd libpng-1.2.35
./configure --prefix=/usr
make
make install

# Install Freetype Support
cd /tmp
wget http://ftp.fifi.org/ImageMagick/delegat ... 3.8.tar.gz
cd freetype-2.3.8
./configure --prefix=/usr
make
make install

# Configure and install ImageMagick
cd /tmp/ImageMagick-6.4.2
./configure --prefix=/usr
make
make install

# If something goes wrong use
make distclean - to remove everything created by configure and make.
make uninstall - to remove all files from the system which are installed by make install

Bye,
Sonya
Post Reply