Code: Select all
convert autotrace:A.gif A_traced.png
Code: Select all
convert A.gif A_traced.svg
Thx.
Code: Select all
convert autotrace:A.gif A_traced.png
Code: Select all
convert A.gif A_traced.svg
It look like the make file already specifies the rsvg. Are you suggesting to add --with-autotrace in the current rsvg config_args or create a new one or maybe even replace the existing reference?magick wrote:The autotrace library and header files must be installed when ImageMagick is built and the --with-autotrace configure script command line option must be included when configuring ImageMagick. Check the output of the configure script to verify autotrace was validated. Next build and install ImageMagick.
Code: Select all
# SVG (Scalable Vector Graphics) requires both libxml2 and X11
.if defined(WITH_IMAGEMAGICK_SVG) && !defined(WITHOUT_X11)
USE_GNOME+= libxml2
LIB_DEPENDS+= rsvg-2:${PORTSDIR}/graphics/librsvg2
CONFIGURE_ARGS+= --with-rsvg --with-xml
CONFIGURE_ENV+= RSVG_CFLAGS="-I${LOCALBASE}/include/librsvg-2" \
RSVG_LIBS="-L${LOCALBASE}/lib"
.else
CONFIGURE_ARGS+= --without-rsvg --without-xml
.endif
Code: Select all
# SVG (Scalable Vector Graphics)
.if defined(WITH_IMAGEMAGICK_SVG)
LIB_DEPENDS+= svg:${PORTSDIR}/graphics/autotrace
CONFIGURE_ARGS+= --with-autotrace
.else
CONFIGURE_ARGS+= --without-autotrace
.endif
Code: Select all
Download source RPM
URL=ftp://mirror.aarnet.edu.au/pub/fedora/linux/releases/14/Everything
wget $URL/source/SRPMS/autotrace-*.src.rpm
Unpack, re-configure, build
package=autotrace
rpm -hiv $package-*.src.rpm
rm $package-*.src.rpm
cd ~/rpmbuild
vi SPECS/$package.spec
:/^Release:/s/%{dist}/at&/
:g/Requires.*ImageMagick-devel/ s/^/#/
:g/Requires.*libexif-devel/ s/^/#/
:g/Requires.*%{name}/ s/^/#/
:/^%configure$/s//& --without-magick --without-pstoedit/
:wq
rpmbuild -bs SPECS/$package.spec
rpmbuild -bb SPECS/$package.spec
find . -name \*.rpm \! -name \*debug\*
Save built package (where ever you like!)
rm ~/autotrace-*.rpm
find . -name \*.rpm \! -name \*debug\* -exec mv {} ~ \;
cd
Install new version (requires root)
sudo rpm -e --nodeps autotrace
sudo rpm -e --nodeps autotrace-devel
sudo rpm -hiv ~/autotrace-0*.at.*.i[36]86.rpm
Exclude Autotrace from yum updates
echo "exclude=autotrace*" >> /etc/yum.conf
Cleanup
rm -rf ~/rpmbuild
Code: Select all
convert -list Configure | grep trace
Code: Select all
magick -list Configure | grep trace