Page 1 of 1

What file do I need to download for the RSVG delegate

Posted: 2011-02-10T06:33:54-07:00
by luukbarten
I would like to add the RSVG delegate to ImageMagick 6.6.7-2

Can somebody tell me what file I need from the following list? http://www.imagemagick.org/download/delegates/

There are no files with "svg" or "rsvg" in them and from all the posts about the (r)svg delegate on this board. I can't figure out what file they downloaded and installed before rebuilding and installing ImageMagick.

My current configuration:

Code: Select all

Name          Value
-------------------------------------------------------------------------------
CC            gcc -std=gnu99 -std=gnu99
CFLAGS        -fopenmp -g -O2 -Wall -pthread
CONFIGURE     ./configure
COPYRIGHT     Copyright (C) 1999-2011 ImageMagick Studio LLC
CPPFLAGS      -I/usr/local/include/ImageMagick
CXX           g++
CXXFLAGS      -g -O2 -pthread
DEFS          -DHAVE_CONFIG_H
DELEGATES     bzlib djvu freetype jpeg jng jp2 lcms png tiff x11 xml wmf zlib
DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-gslib=no --with-fontpath= --with-perl=no
EXEC-PREFIX   /usr/local
FEATURES      OpenMP
HOST          i686-pc-linux-gnu
LDFLAGS       -L/usr/local/lib -L/usr/local/lib
LIB_VERSION   0x667
LIB_VERSION_NUMBER 6,6,7,2
LIBS          -lMagickCore -llcms -ltiff -lfreetype -ljasper -ljpeg -lpng -ldjvulibre -lwmf -lwmflite -lXext -lXt -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lm -lgomp -lpthread -lltdl
NAME          ImageMagick
PCFLAGS       -fopenmp
PREFIX        /usr/local
QuantumDepth  16
RELEASE_DATE  2011-02-09
VERSION       6.6.7
WEBSITE       http://www.imagemagick.org


Re: What file do I need to download for the RSVG delegate

Posted: 2011-02-10T07:32:15-07:00
by magick
Install rsvg on your system. On ours we use this command:
  • yum install librsvg2 librsvg2-devel ImageMagick-devel
Now download the ImageMagick source and build:
  • tar xvfz ImageMagick-6.6.7-6.tar.gz
    cd ImageMagick-6.6.7-6
    ./configure
    make
    make install
    identify -list configure
You should now have RSVG support in your ImageMagick instance.

Re: What file do I need to download for the RSVG delegate

Posted: 2011-02-14T02:24:07-07:00
by luukbarten
Thanks for the quick reply. I don't use yum on my Ubuntu 10.04 LTS server.

So i did the following:

Code: Select all

apt-get install librsvg2-2
And then from my Imagemagick6.6.7 folder:

Code: Select all

./configure
make
make install
And it still doesn't show the Rsvg delegate in my configuration

Code: Select all

Name          Value
-------------------------------------------------------------------------------
CC            gcc -std=gnu99 -std=gnu99
CFLAGS        -fopenmp -g -O2 -Wall -pthread
CONFIGURE     ./configure
COPYRIGHT     Copyright (C) 1999-2011 ImageMagick Studio LLC
CPPFLAGS      -I/usr/local/include/ImageMagick
CXX           g++
CXXFLAGS      -g -O2 -pthread
DEFS          -DHAVE_CONFIG_H
DELEGATES     bzlib djvu freetype jpeg jng jp2 lcms png tiff x11 xml wmf zlib
DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-gslib=no --with-fontpath= --with-perl=no
EXEC-PREFIX   /usr/local
FEATURES      OpenMP
HOST          i686-pc-linux-gnu
LDFLAGS       -L/usr/local/lib -L/usr/local/lib
LIB_VERSION   0x667
LIB_VERSION_NUMBER 6,6,7,2
LIBS          -lMagickCore -llcms -ltiff -lfreetype -ljasper -ljpeg -lpng -ldjvulibre -lwmf -lwmflite -lXext -lXt -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lm -lgomp -lpthread -lltdl
NAME          ImageMagick
PCFLAGS       -fopenmp
PREFIX        /usr/local
QuantumDepth  16
RELEASE_DATE  2011-02-14
VERSION       6.6.7
WEBSITE       http://www.imagemagick.org
Should I have uninstalled Imagemagick first? Or is a reconfiguration and make enough?

Should i have installed librsvg2-bin instead of librsvg2-2?

My ./configure results in the following output:

Code: Select all

checking png.h presence... yes
checking for png.h... yes
checking for png_get_io_ptr in -lpng... yes
checking if PNG package is complete... yes
-------------------------------------------------------------
checking for RSVG...
checking for CAIRO_SVG...
-------------------------------------------------------------
checking for TIFF...
checking tiff.h usability... yes
checking tiff.h presence... yes
checking for tiff.h... yes
checking tiffio.h usability... yes
checking tiffio.h presence... yes
checking for tiffio.h... yes
checking for TIFFOpen in -ltiff... yes
checking for TIFFClientOpen in -ltiff... yes
checking for TIFFIsBigEndian in -ltiff... yes
checking for TIFFIsByteSwapped in -ltiff... yes
checking for TIFFReadRGBATile in -ltiff... yes
checking for TIFFReadRGBAStrip in -ltiff... yes
checking if TIFF package is complete... yes
checking tiffconf.h usability... yes
checking tiffconf.h presence... yes
checking for tiffconf.h... yes
checking for TIFFIsCODECConfigured... yes
checking for TIFFMergeFieldInfo... yes
checking for TIFFReadEXIFDirectory... yes
checking for TIFFSetErrorHandlerExt... yes
checking for TIFFSetTagExtender... yes
checking for TIFFSetWarningHandlerExt... yes
checking for TIFFSwabArrayOfTriples... yes
-------------------------------------------------------------
checking for WMF...
checking libwmf/eps.h usability... yes
checking libwmf/eps.h presence... yes
checking for libwmf/eps.h... yes
checking for wmf_eps_function in -lwmf... yes
checking if WMF package is complete... yes
-------------------------------------------------------------
checking for XML...
checking for xml2-config... xml2-config
checking libxml/parser.h usability... yes
checking libxml/parser.h presence... yes
checking for libxml/parser.h... yes
checking for xmlParseExternalEntity in -lxml2... yes
checking if XML package is complete... yes
-------------------------------------------------------------
checking for ImageMagick delegate programs...
checking for autotrace... autotrace
checking for blender... blender
checking for bzip2... /bin/bzip2
checking for xdg-open... xdg-open
checking for ralcgm... ralcgm
checking for cat... /bin/cat
checking for ufraw-batch... ufraw-batch
checking for dot... dot
checking for dvips... dvips
checking for echo... /bin/echo
checking for xterm... xterm
checking for fig2dev... fig2dev
checking for convert... convert
checking for display... display
checking for mogrify... mogrify
checking for gnuplot... gnuplot
checking for ra_pfm... ra_pfm
checking for hp2xx... hp2xx
checking for html2ps... html2ps
checking for ilbmtoppm... ilbmtoppm
checking for ppmtoilbm... ppmtoilbm
checking for lp... no
checking for lpr... lpr
checking for uncompress... /bin/uncompress
checking for compress... compress
checking for gimp... gimp
checking for groff... /usr/bin/groff
checking for ffmpeg... ffmpeg
checking for ffmpeg... ffmpeg
checking for mrsidgeodecode... mrsidgeodecode
checking for mv... /bin/mv
checking for pcl6... pcl6
checking for pgpv... pgpv
checking for povray... povray
checking for gsx... no
checking for gsc... no
checking for gs... /usr/bin/gs
checking for rawtorle... rawtorle
checking for rm... /bin/rm
checking for rsvg... rsvg
checking for scanimage... scanimage
checking for enscript... enscript
checking for uniconvertor... uniconvertor
checking for webpconv... webpconv
checking for wmf2eps... wmf2eps
checking for curl... /usr/bin/curl
checking for gxps... gxps
checking for gzip... /bin/gzip
checking for Dejavu fonts directory... not found!
checking for Ghostscript fonts directory... /usr/share/fonts/type1/gsfonts/
checking for gnutar... no
checking for gtar... no
checking for tar... tar
checking for perl... perl
checking for rpmbuild... rpmbuild
checking for 7za... no
checking for zip... no
-------------------------------------------------------------
checking for Ghostscript...
checking for Ghostscript version... 8.71
checking for gs alpha device... pngalpha
checking for gs color device... pnmraw
checking for gs CMYK device... pam
checking for gs mono device... pbmraw
checking for gs PDF writing device... pdfwrite
checking for gs PS writing device... pswrite
checking for gs EPS writing device... epswrite
-------------------------------------------------------------
Update ImageMagick configuration
configure: creating ./config.status
config.status: creating config/configure.xml
config.status: creating config/delegates.xml
config.status: creating config/ImageMagick.rdf
config.status: creating config/MagickCore.dox
config.status: creating config/MagickWand.dox
config.status: creating config/type-dejavu.xml
config.status: creating config/type-ghostscript.xml
config.status: creating config/type-windows.xml
config.status: creating config/type.xml
config.status: creating ImageMagick.spec
config.status: creating Magick++/bin/Magick++-config
config.status: creating magick/ImageMagick.pc
config.status: creating Magick++/lib/ImageMagick++.pc
config.status: creating Magick++/lib/Magick++.pc
config.status: creating magick/Magick-config
config.status: creating magick/MagickCore-config
config.status: creating magick/MagickCore.pc
config.status: creating magick/version.h
config.status: creating Makefile
config.status: creating magick.sh
config.status: creating PerlMagick/Magick.pm
config.status: creating PerlMagick/Makefile.PL
config.status: creating PerlMagick/check.sh
config.status: creating utilities/animate.1
config.status: creating utilities/compare.1
config.status: creating utilities/composite.1
config.status: creating utilities/conjure.1
config.status: creating utilities/convert.1
config.status: creating utilities/display.1
config.status: creating utilities/identify.1
config.status: creating utilities/ImageMagick.1
config.status: creating utilities/import.1
config.status: creating utilities/mogrify.1
config.status: creating utilities/montage.1
config.status: creating utilities/stream.1
config.status: creating wand/MagickWand-config
config.status: creating wand/MagickWand.pc
config.status: creating wand/Wand-config
config.status: creating wand/Wand.pc
config.status: creating config/config.h
config.status: executing magick/magick-config.h commands
config.status: creating magick/magick-config.h - prefix MAGICKCORE for config/config.h defines
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default commands
config.status: executing MagickCore-config.in commands
config.status: executing Magick-config.in commands
config.status: executing MagickWand-config.in commands
config.status: executing Wand-config.in commands
config.status: executing Magick++-config.in commands
config.status: executing PerlMagick/check.sh.in commands

ImageMagick is configured as follows. Please verify that this configuration
matches your expectations.

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

                  Option                        Value
-------------------------------------------------------------------------------
Shared libraries  --enable-shared=no            no
Static libraries  --enable-static=yes           yes
Module support    --with-modules=no             no
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              yes
Autotrace         --with-autotrace=no           no
Dejavu fonts      --with-dejavu-font-dir=default        none
DJVU              --with-djvu=yes               yes
DPS               --with-dps=yes                no
FFTW              --with-fftw=yes               no
FlashPIX          --with-fpx=yes                no
FontConfig        --with-fontconfig=yes         no
FreeType          --with-freetype=yes           yes
GhostPCL          None                          pcl6 (unknown)
GhostXPS          None                          gxps (unknown)
Ghostscript       None                          gs (8.71)
Ghostscript fonts --with-gs-font-dir=default    /usr/share/fonts/type1/gsfonts/
Ghostscript lib   --with-gslib=no               no
Graphviz          --with-gvc=yes                no
JBIG              --with-jbig=yes               no
JPEG v1           --with-jpeg=yes               yes
JPEG-2000         --with-jp2=yes                yes
LCMS v1           --with-lcms=yes               yes
LCMS v2           --with-lcms2=yes              no
LQR               --with-lqr=yes                no
LZMA              --with-lzma=yes               no
Magick++          --with-magick-plus-plus=yes   yes
OpenEXR           --with-openexr=yes            no
PERL              --with-perl=no                no
PNG               --with-png=yes                yes
RSVG              --with-rsvg=yes               no
TIFF              --with-tiff=yes               yes
Windows fonts     --with-windows-font-dir=      none
WMF               --with-wmf=yes                yes
X11               --with-x=                     yes
XML               --with-xml=yes                yes
ZLIB              --with-zlib=yes               yes

X11 Configuration:
      X_CFLAGS        =
      X_PRE_LIBS      = -lSM -lICE
      X_LIBS          =
      X_EXTRA_LIBS    =

Options used to compile and link:
  PREFIX          = /usr/local
  EXEC-PREFIX     = /usr/local
  VERSION         = 6.6.7
  CC              = gcc -std=gnu99 -std=gnu99
  CFLAGS          = -fopenmp -g -O2 -Wall -pthread
  CPPFLAGS        = -I/usr/local/include/ImageMagick
  PCFLAGS         = -fopenmp
  DEFS            = -DHAVE_CONFIG_H
  LDFLAGS         = -L/usr/local/lib
  MAGICK_LDFLAGS  = -L/usr/local/lib -L/usr/local/lib
  LIBS            = -lMagickCore -llcms -ltiff -lfreetype -ljasper -ljpeg -lpng -ldjvulibre -lwmf -lwmflit                                                e -lXext -lXt -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lm -lgomp -lpthread
  CXX             = g++
  CXXFLAGS        = -g -O2 -pthread
  FEATURES        = OpenMP
And I think my problem is the following line:

Code: Select all

RSVG              --with-rsvg=yes               no

Re: What file do I need to download for the RSVG delegate

Posted: 2011-02-14T05:38:39-07:00
by magick
You may need to install the librsvg2-2-devel package. Check config.log. It will tell you why the RSVG delegate library failed to validate.

Re: What file do I need to download for the RSVG delegate

Posted: 2011-02-14T07:17:15-07:00
by luukbarten
Its fixed now. Thank you for the tip. For other people who might want to install ImageMagick for Ubuntu 10.04 and use RSVG I did the following:

Installed the following delegates through apt-get:
  • librsvg2-dev
  • libxml2-dev

Code: Select all

apt-get install librsvg2-dev
apt-get install libxml2-dev
Apart from the xml2 package you also need freetype for RSVG to do your bidding:
I installed freetype and jpeg-8b by configure and build procedure.

Code: Select all

wget http://location of freetype tar.gz file
tar -xzf freetype.tar.gz
cd freetype-directory-name
./configure
make
make install

wget http://location of jpeg-8b tar.gz file
tar -xzf jpeg-8b.tar.gz
cd jpeg-8b-directory
./configure
make
make install
You can install a few other delegates if you want to like I did with the jpeg-8b.

Then when alle delegates were in place I installed ImageMagick 6.6.7-2

Code: Select all

wget http://location of latest ImageMagickversion.tar.gz
tar -xzf ImageMagicktar.gz
cd ImageMagick-directory
./configure
make
make install
You can check if the delegates have been installed by typing

Code: Select all

convert -list configure
In order to use ImageMagick through PHP you have to set safe mode off in php.ini, make sure the folder where you are writing files to has the right chmod settings.
And if you encounter the following error in the error.log of apache:
error while loading shared libraries: libMagickCore.so.4: cannot open shared object file: No such file or directory
you can do the following:

Code: Select all

ldconfig /usr/local/lib