Move / Upgrade Broke ImageMagick Perl Script
Posted: 2010-11-23T13:53:11-07:00
Hi. Newbie here. I'm not entirely sure how to pose this question, but here goes:
I have a php-based website that uses a Perl script invoked via CGI to process images uploaded to the site. I recently moved it from one server to another. The original server had
ImageMagick 6.5.5-9 2010-06-22 Q16
I installed
ImageMagick 6.6.5-8 2010-11-13 Q16
on the new one as it was most current.
I am now getting this series of errors when I run the script (I'm invoking it manually from the command line with a "-w" so as to be able to more easily capture the errors):
composite: unrecognized color `868e82' @ warning/color.c/GetColorCompliance/948.
composite: missing an image filename `/Volumes/redraid/web_deltaquest_net/proofs/events/9891/giant/001.jpg' @ error/composite.c/CompositeImageCommand/1613.
convert: unable to open image `/Volumes/redraid/web_deltaquest_net/proofs/events/9891/giant/001.jpg': No such file or directory @ error/blob.c/OpenBlob/2584.
convert: missing an image filename `/Volumes/redraid/web_deltaquest_net/proofs/events/9891/images/001.jpg' @ error/convert.c/ConvertImageCommand/2949.
convert: unable to open image `/Volumes/redraid/web_deltaquest_net/proofs/events/9891/images/001.jpg': No such file or directory @ error/blob.c/OpenBlob/2584.
convert: missing an image filename `/Volumes/redraid/web_deltaquest_net/proofs/events/9891/thumbnails/001.jpg' @ error/convert.c/ConvertImageCommand/2949.
Here is the section of the Perl script that calls Composite and Convert
I apologize if it is difficult to read; I'm not sure how to "translate" it into something less "Perl-like". I just know it worked on the old server and I didn't change the script at all.
Here is the output from convert -list configure
Path: /usr/local/lib/ImageMagick-6.6.5/config/configure.xml
Name Value
-------------------------------------------------------------------------------
CC gcc -std=gnu99 -std=gnu99
CFLAGS -g -O2 -Wall -D_THREAD_SAFE -pthread
CONFIGURE ./configure 'LDFLAGS=-L/usr/local/lib' 'CPPFLAGS=-I/usr/local/include'
COPYRIGHT Copyright (C) 1999-2010 ImageMagick Studio LLC
CPPFLAGS -I/usr/local/include/ImageMagick
CXX g++
CXXFLAGS -g -O2 -D_THREAD_SAFE -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES bzlib freetype jpeg jng jp2 lcms2 png tiff x11 xml zlib
DISTCHECK_CONFIG_FLAGS 'CPPFLAGS=-I/usr/local/include' 'LDFLAGS=-L/usr/local/lib' --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
HOST i386-apple-darwin9.8.0
LDFLAGS -L/usr/local/lib -L/usr/local/lib -L/usr/X11/lib -R/usr/X11/lib
LIB_VERSION 0x665
LIB_VERSION_NUMBER 6,6,5,8
LIBS -lMagickCore -llcms2 -ltiff -lfreetype -ljasper -ljpeg -lpng -lXext -lXt -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lm -lpthread
NAME ImageMagick
PCFLAGS
PREFIX /usr/local
QuantumDepth 16
RELEASE_DATE 2010-11-13
VERSION 6.6.5
WEBSITE http://www.imagemagick.org
Any help would be AWESOME! Thanks.
I have a php-based website that uses a Perl script invoked via CGI to process images uploaded to the site. I recently moved it from one server to another. The original server had
ImageMagick 6.5.5-9 2010-06-22 Q16
I installed
ImageMagick 6.6.5-8 2010-11-13 Q16
on the new one as it was most current.
I am now getting this series of errors when I run the script (I'm invoking it manually from the command line with a "-w" so as to be able to more easily capture the errors):
composite: unrecognized color `868e82' @ warning/color.c/GetColorCompliance/948.
composite: missing an image filename `/Volumes/redraid/web_deltaquest_net/proofs/events/9891/giant/001.jpg' @ error/composite.c/CompositeImageCommand/1613.
convert: unable to open image `/Volumes/redraid/web_deltaquest_net/proofs/events/9891/giant/001.jpg': No such file or directory @ error/blob.c/OpenBlob/2584.
convert: missing an image filename `/Volumes/redraid/web_deltaquest_net/proofs/events/9891/images/001.jpg' @ error/convert.c/ConvertImageCommand/2949.
convert: unable to open image `/Volumes/redraid/web_deltaquest_net/proofs/events/9891/images/001.jpg': No such file or directory @ error/blob.c/OpenBlob/2584.
convert: missing an image filename `/Volumes/redraid/web_deltaquest_net/proofs/events/9891/thumbnails/001.jpg' @ error/convert.c/ConvertImageCommand/2949.
Here is the section of the Perl script that calls Composite and Convert
Code: Select all
$makegiant = "/usr/local/bin/convert ".$nextnamepath." -resize 900x900 -quality 75 JPG:- | /usr/local/bin/composite -gravity center - -size 900x900 xc:".$bgcolorcl." /Volumes/redraid/web_deltaquest_net/proofs/events/".$event."/giant/".$newnextname.".jpg";
system($makegiant);
system("/usr/local/bin/convert /Volumes/redraid/web_deltaquest_net/proofs/events/".$event."/giant/".$newnextname.".jpg -resize 450x450 -quality 90 /Volumes/redraid/web_deltaquest_net/proofs/events/".$event."/images/".$newnextname.".jpg");
I apologize if it is difficult to read; I'm not sure how to "translate" it into something less "Perl-like". I just know it worked on the old server and I didn't change the script at all.
Here is the output from convert -list configure
Path: /usr/local/lib/ImageMagick-6.6.5/config/configure.xml
Name Value
-------------------------------------------------------------------------------
CC gcc -std=gnu99 -std=gnu99
CFLAGS -g -O2 -Wall -D_THREAD_SAFE -pthread
CONFIGURE ./configure 'LDFLAGS=-L/usr/local/lib' 'CPPFLAGS=-I/usr/local/include'
COPYRIGHT Copyright (C) 1999-2010 ImageMagick Studio LLC
CPPFLAGS -I/usr/local/include/ImageMagick
CXX g++
CXXFLAGS -g -O2 -D_THREAD_SAFE -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES bzlib freetype jpeg jng jp2 lcms2 png tiff x11 xml zlib
DISTCHECK_CONFIG_FLAGS 'CPPFLAGS=-I/usr/local/include' 'LDFLAGS=-L/usr/local/lib' --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
HOST i386-apple-darwin9.8.0
LDFLAGS -L/usr/local/lib -L/usr/local/lib -L/usr/X11/lib -R/usr/X11/lib
LIB_VERSION 0x665
LIB_VERSION_NUMBER 6,6,5,8
LIBS -lMagickCore -llcms2 -ltiff -lfreetype -ljasper -ljpeg -lpng -lXext -lXt -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lm -lpthread
NAME ImageMagick
PCFLAGS
PREFIX /usr/local
QuantumDepth 16
RELEASE_DATE 2010-11-13
VERSION 6.6.5
WEBSITE http://www.imagemagick.org
Any help would be AWESOME! Thanks.