Surfer
06-13-2002, 07:59 AM
Hi,
I need to install image magick on my RAQ 4 as a script requires it!
Are there any install instructions available for the latest version of image magick on a RAQ 4? Anyone done this before? I don't want to crash my pizza box!!!!
Thanks
www.imagemagick.org
Originaly posted by: DReffects
Original thread: http://forum.rackshack.net/showthread.php?s=&threadid=683&highlight=image+magick
I'll link this in the duplicate post you put in the rackshack forums as well....
ImageMagick for Cobalt RAQ3/4
These instructions will provide support for JPEG, GIF, TIFF & PNG file support for ImageMagick.
All the unix commands where execute as the "root" user, using an ssh connection.
1. Download ImageMagic-5.3.7.tar.gz
wget http://imagemagick.sourceforge.net/...ck-5.3.7.tar.gz
You will also need to download the following supports files if not already installed. You can check for the header files in /usr/include to see if installed.
tiff.h
png.h
jpeglib.h
Also check in /usr/local/include as rpm packages might install the header files in this directory.
You can all use the rpm application to see if any of these applications are already installed.
I used..
# rpm -q -a | grep png
# rpm -q -a | grep tiff
If you do not get any result on the tiff rpm command don't worry - check /usr/local/include and /usr/include - if the tiff file is there it will work
But bear in mind you still might not have the header files that will be require for compiling latter, so still check for the .h files
2. Download jpegsrc.v6b.tar.gz
wget http://www.imagefolio.com/ImageMagi...gsrc.v6b.tar.gz
3. Download tiff-v3.5.5.tar.gz
wget http://www.imagefolio.com/ImageMagi...f-v3.5.5.tar.gz
4. Download libtiff-lzw-compression-kit.1.1.tar.gz
wget http://www.imagefolio.com/ImageMagi...-kit-1.1.tar.gz
5. Download libpng-1.0.6.tar.gz
wget http://www.imagefolio.com/ImageMagi...ng-1.0.6.tar.gz
For the purpose of this example, I loaded all my files into /home/sites/home/installed/imagemagick
Make sure that all these files are transfer as Binary.
Once uploaded, you will need to do the following for each file uploaded.
this unpacks everything:
#tar -zxvf ImageMagick-5.3.7.tar
#tar -zxvf libpng-1.0.6.tar
#tar -zxvf libtiff-lzw-compression-kit-1.1.tar
#tar -zxvf jpegsrc.v6b.tar
#tar z-xvf tiff-v3.5.5.tar
then:
#cd libpng-1.0.6
#cd scripts
#cp makefile.linux ../makefile
#cd ..
#make
#make install
#cd ..
#cd jpeg-6b
#./configure --enable-shared
#make
#make install
#cd..
#cd libtiff-lzw-compression-kit
#vi Makefile
change
TIFF_SRC_DIR = /tmp/libtiff
to
TIFF_SRC_DIR = ../tiff-v3.5.5
Then Save end Exit the Editor
#make install
#cd ..
#cd tiff-v3.5.5
#./configure
Answer yes to TIFF Configuration Parameters
#make
#make install
#cd..
#cd ImageMagick-5.3.7
#./configure --enable-lzw=yes --enable-shared=yes --disable-static --with-perl=/usr/bin/perl
#make
#make install
#make check (this will just run through a view convserion checks..
now... it should work
Happy Imaging.
TestScript:
#!/usr/bin/perl
use Image::Magick;
$image = new Image::Magick;
$image->Read("/path/to/file/pic.jpg");
$image->Scale(geometry=>'140x105');
$image->Set(quality=>35);
$image->Contrast;
$image->Sharpen;
$image->Sharpen;
$image->Border(geometry=>'1x1', fill=>cornflowerblue);
$image->Write(filename=>"/path/to/output/file/output.jpg");
print "Content-type: text/html\n\n";
print "<html><body>should work...</body></html>";
you must CHMOD the output dir with 0777....
that's it!
Surfer
06-13-2002, 12:33 PM
Thanks for your help guys!
I used the above instructions with v5.4.6-1 and it worked perfectly!!!
thanks
:D