add Pango to ImageMagick-6.6.0 on Debian
Posted: 2015-05-19T04:18:25-07:00
I want to manage some images with RTL texts so I've already installed followings
I made a test and got following error message:
.
so regarding http://www.wizards-toolkit.org/discours ... hp?t=22209 I found out pango is not integrated to imagemagick and I checked followings:
I checked the install directory of Pango and made a test
my test:
I can get image.png file with above command.
So it seems Pango was installed successfully but I don't know how could I enable it in imagemagick or recompile the IM.
How could I fix this error? Need your help.
Thanks a lot.
Code: Select all
sudo apt-get install imagemagick
sudo apt-get install libpango1.0-dev
Code: Select all
convert -background lightblue -fill blue -font "/srv/server1.com/public/htdocs/img/fonts/Arial.ttf" -pointsize 72 pango:"test" pango.gif
convert: unable to open image `pango:test': @ error/blob.c/OpenBlob/2489.
convert: missing an image filename `pango.gif' @ error/convert.c/ConvertImageCommand/2940
so regarding http://www.wizards-toolkit.org/discours ... hp?t=22209 I found out pango is not integrated to imagemagick and I checked followings:
Code: Select all
identify -version
Version: ImageMagick 6.6.0-4 2014-11-22 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP
Code: Select all
convert -list configure
Path: /usr/lib/ImageMagick-6.6.0/config/configure.xml
Name Value
-------------------------------------------------------------------------------
CC gcc -std=gnu99 -std=gnu99
CFLAGS -I/usr/include/lqr-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -fopenmp -g -O2 -Wall -W -pthread
CONFIGURE ./configure '--prefix=/usr' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--with-modules' '--with-gs-font-dir=/usr/share/fonts/type1/gsfonts' '--with-magick-plus-plus' '--with-djvu' '--enable-shared' '--without-dps' '--without-fpx' '--with-perl-options=INSTALLDIRS=vendor' '--x-includes=/usr/include/X11' '--x-libraries=/usr/lib/X11' 'CFLAGS=-g -O2' 'LDFLAGS=' 'CPPFLAGS=' 'CXXFLAGS=-g -O2'
COPYRIGHT Copyright (C) 1999-2010 ImageMagick Studio LLC
CPPFLAGS -I/usr/include/ImageMagick
CXX g++
CXXFLAGS -g -O2 -Wall -W -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES bzlib djvu fontconfig freetype gvc jpeg jng jp2 lcms lqr openexr png rsvg tiff x11 xml wmf zlib
DISTCHECK_CONFIG_FLAGS 'CFLAGS=-g -O2' 'CPPFLAGS=' 'LDFLAGS=' --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-dps=no --with-fpx=no --with-gslib=no --with-fontpath= --with-gs-font-dir=/usr/share/fonts/type1/gsfonts
EXEC-PREFIX /usr
HOST i686-pc-linux-gnu
LDFLAGS -L/usr/lib -L/usr/lib/X11
LIB_VERSION 0x660
LIB_VERSION_NUMBER 6,6,0,4
LIBS -lMagickCore -llcms -ltiff -lfreetype -ljpeg -llqr-1 -lglib-2.0 -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lgomp -lpthread -lltdl
NAME ImageMagick
PCFLAGS -fopenmp
PREFIX /usr
QuantumDepth 16
RELEASE_DATE 2014-11-22
VERSION 6.6.0
WEBSITE http://www.imagemagick.org
Code: Select all
type -a convert
convert is /usr/bin/convert
Code: Select all
apps:/usr/lib/pango/1.6.0# find /usr | grep "pango"
/usr/lib/libpangox-1.0.so
/usr/lib/pkgconfig/pangox.pc
/usr/lib/pkgconfig/pangocairo.pc
/usr/lib/pkgconfig/pango.pc
/usr/lib/pkgconfig/pangoft2.pc
/usr/lib/pkgconfig/pangoxft.pc
/usr/lib/libpangocairo-1.0.so.0.2800.3
/usr/lib/libpangoxft-1.0.so.0
/usr/lib/libpangoft2-1.0.a
/usr/lib/libpangoxft-1.0.la
/usr/lib/libpangoft2-1.0.so.0.2800.3
/usr/lib/libpango-1.0.la
/usr/lib/libpangoxft-1.0.so
/usr/lib/libpangox-1.0.la
/usr/lib/libpangox-1.0.so.0
/usr/lib/libpangocairo-1.0.la
/usr/lib/pango
/usr/lib/pango/1.6.0
/usr/lib/pango/1.6.0/module-files.d
/usr/lib/pango/1.6.0/module-files.d/libpango1.0-0.modules
/usr/lib/pango/1.6.0/modules
/usr/lib/pango/1.6.0/modules/pango-thai-lang.so
/usr/lib/pango/1.6.0/modules/pango-thai-fc.so
/usr/lib/pango/1.6.0/modules/pango-basic-x.so
/usr/lib/pango/1.6.0/modules/pango-hebrew-fc.so
/usr/lib/pango/1.6.0/modules/pango-syriac-fc.so
/usr/lib/pango/1.6.0/modules/pango-tibetan-fc.so
/usr/lib/pango/1.6.0/modules/pango-khmer-fc.so
/usr/lib/pango/1.6.0/modules/pango-arabic-fc.so
/usr/lib/pango/1.6.0/modules/pango-indic-lang.so
/usr/lib/pango/1.6.0/modules/pango-basic-fc.so
/usr/lib/pango/1.6.0/modules/pango-indic-fc.so
/usr/lib/pango/1.6.0/modules/pango-hangul-fc.so
/usr/lib/pango/1.6.0/modules/pango-arabic-lang.so
/usr/lib/libpangoft2-1.0.la
/usr/lib/libpangocairo-1.0.so.0
/usr/lib/libpango-1.0.so.0.2800.3
/usr/lib/graphviz/libgvplugin_pango.so.6
/usr/lib/graphviz/libgvplugin_pango.so.6.0.0
/usr/lib/libpangoft2-1.0.so
/usr/lib/libpangox-1.0.so.0.2800.3
/usr/lib/libpangocairo-1.0.so
/usr/lib/libpango-1.0.so.0
/usr/lib/libpango-1.0.so
/usr/lib/libpangox-1.0.a
/usr/lib/libpangoft2-1.0.so.0
/usr/lib/libpangocairo-1.0.a
/usr/lib/libpangoxft-1.0.so.0.2800.3
/usr/lib/libpangoxft-1.0.a
/usr/lib/libpango-1.0.a
/usr/share/doc/libpango1.0-common
/usr/share/doc/libpango1.0-common/README.Debian
/usr/share/doc/libpango1.0-common/changelog.gz
/usr/share/doc/libpango1.0-common/README
/usr/share/doc/libpango1.0-common/changelog.Debian.gz
/usr/share/doc/libpango1.0-common/copyright
/usr/share/doc/libpango1.0-common/NEWS.gz
/usr/share/doc/libpango1.0-common/README.Defoma
/usr/share/doc/libpango1.0-0
/usr/share/doc/libpango1.0-dev
/usr/share/man/fr/man8/update-pangox-aliases.8.gz
/usr/share/man/man1/dh_pangomodules.1.gz
/usr/share/man/man1/pango-view.1.gz
/usr/share/man/man1/pango-querymodules.1.gz
/usr/share/man/man8/update-pangox-aliases.8.gz
/usr/share/defoma/scripts/pango.defoma
/usr/include/pango-1.0
/usr/include/pango-1.0/pango
/usr/include/pango-1.0/pango/pangocairo.h
/usr/include/pango-1.0/pango/pango-item.h
/usr/include/pango-1.0/pango/pango-glyph.h
/usr/include/pango-1.0/pango/pango-tabs.h
/usr/include/pango-1.0/pango/pango-layout.h
/usr/include/pango-1.0/pango/pango-glyph-item.h
/usr/include/pango-1.0/pango/pango-fontmap.h
/usr/include/pango-1.0/pango/pango-features.h
/usr/include/pango-1.0/pango/pango-engine.h
/usr/include/pango-1.0/pango/pango-renderer.h
/usr/include/pango-1.0/pango/pangoxft.h
/usr/include/pango-1.0/pango/pango-coverage.h
/usr/include/pango-1.0/pango/pango-types.h
/usr/include/pango-1.0/pango/pangoxft-render.h
/usr/include/pango-1.0/pango/pango-enum-types.h
/usr/include/pango-1.0/pango/pango-utils.h
/usr/include/pango-1.0/pango/pangox.h
/usr/include/pango-1.0/pango/pango-language.h
/usr/include/pango-1.0/pango/pangofc-font.h
/usr/include/pango-1.0/pango/pango-script.h
/usr/include/pango-1.0/pango/pango-attributes.h
/usr/include/pango-1.0/pango/pango-font.h
/usr/include/pango-1.0/pango/pango-gravity.h
/usr/include/pango-1.0/pango/pango-bidi-type.h
/usr/include/pango-1.0/pango/pango-context.h
/usr/include/pango-1.0/pango/pangoft2.h
/usr/include/pango-1.0/pango/pango-fontset.h
/usr/include/pango-1.0/pango/pango.h
/usr/include/pango-1.0/pango/pango-matrix.h
/usr/include/pango-1.0/pango/pango-break.h
/usr/include/pango-1.0/pango/pango-modules.h
/usr/include/pango-1.0/pango/pango-ot.h
/usr/include/pango-1.0/pango/pangofc-fontmap.h
/usr/include/pango-1.0/pango/pangofc-decoder.h
/usr/sbin/update-pangox-aliases
/usr/bin/pango-querymodules
/usr/bin/dh_pangomodules
/usr/bin/pango-view
Code: Select all
pango-view 000.htm --no-display --output=image.png
I can get image.png file with above command.
So it seems Pango was installed successfully but I don't know how could I enable it in imagemagick or recompile the IM.
How could I fix this error? Need your help.
Thanks a lot.