Installation notes - Linux/Unix:
Linux version with a dedicated rpm file
- Download and run the latest binary release for your version of linux.
- Extract the rpm file to a folder on your PC.
- Run the config file in folder from step 2 ( you need to be connected to the internet as some extra files may need to be downloaded ).
- Confirm it is working by running in the terminal: convert -version
- Run your code like this in the terminal : convert full_path_to_input.jpg -thumbnail 100x100 full_path_to_output.jpg
Install from source code ( works for all Linux distrubitions )
- Download ImageMagick source code ( usually it's a .tar.gz ) to the server's temporary directory ( for example /tmp ).
cd /tmp
enter /tmp folder
wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick-6.3.5-9.tar.gz
- Unpack the archive
tar -xvzf ImageMagick.tar.gz
- Enter the ImageMagick source code directory
cd ImageMagick-6.3.5
- install ImageMagick
./configure
make
make install
Alternative instructions
If the default RPM's can not be used the next best things is
to build RPM's for your system using the .src.rpm download.
Superuser (root) priveleges are not needed to create the binary RPM's
from the source RPM's, although it requires a little trick to do this.
Instructions for this method
This is preferable as removing a direct binary installation is not easy
and you could end up with two versions of IM installed, causing all
sorts of unexpected problems.
To install GhostScript
- Download Ghostscript source code ( usually it's a .tar.gz ) to the server's temporary directory ( for example /tmp ).
cd /tmp
enter /tmp folder
- Unpack the archive
tar -xvzf ghostscript-8.60.tar.gz
- Enter the Ghostscript source code directory
cd ghostscript-8.60
- install ghostscript
./configure
make
make install
To install fonts
- Downloaded archive with base fonts:
wget http://downloads.sourceforge.net/ghostscript/ghostscript-fonts-std-8.11.tar.gz
- Go to GhostScript directory:
cd /usr/local/share/ghostscript/
- Unpacked fonts:
tar -xvzf ghostscript-fonts-std-8.11.tar.gz
The path to the fonts will be:
/usr/local/share/ghostscript/fonts/
Extra fonts can be installed using the method above.