ImageMagick was used in the development of a project. Our testing environment is normal, and the customer's testing environment is installed according to the installation method of our development environment, however, an error is reported when processing JPEG images. The configuration log does not support JPEG.
ImageMagick is a library group for converting images. It supports Perl, C ++, Java, and other languages. You can process images in a variety of ways.
The installation methods of ImageMagick include rpm and source. The latest version is ImageMagick-6.5.5. Download: http://www.imagemagick.org from this URL
Installation steps:
1. SSH connection to Linux Server
2. Place the downloaded installation file in the appropriate folder. For example, CD/usr/local/src. Or download it directly on the server.
3. decompress the downloaded file
Tar-zxvf ImageMagick-6.5.5-7.tar.gz
5. Move to the decompressed folder.
CD ImageMagick-6.3.5-7
6. Configure Configuration
./Configure
Run./configure -- help to check the configuration parameters. Set the parameters as needed.
Generally, image processing must support several common image formats: JPEG, PNG, and GIF.
Check the configuration result. If yes, no means not.
JPEG V1 -- With-JPEG = Yes
PNG -- With-PNG = Yes
Zlib -- With-zlib = Yes
In case of no, run the following command to check whether the corresponding library is installed.
Rpm-Qa | grep JPEG // zlib for zlib and PNG for libpng
Execution result: libjpeg-6b-33
The execution result is indeed a jpeg library installed, but why is it not recognized? Finally, I checked it online for half a day and found that the libjpeg-devel library must be installed. Some systems may have been installed by default, so they may not be concerned. Download the libjpeg-devel library RPM Installation File and install it online.
After the installation is complete, configure ImageMagick again. The configuration result is "yes.
7. Compile
Make
8. Installation
Install
The ImageMagick installation is complete.
For Java Development, jmagick must be installed. Download from here: ftp://ftp.imagemagick.org/pub/ImageMagick/java/
When jmagick is installed, does the main java_home environment variable need to be consistent with the JDK version used for development? Because some servers have multiple JDK versions, jmagick is compiled by default using the environment variable version, if the version is inconsistent, a version inconsistency error may be reported.
Specific pictures support what Library and other information can be viewed from the official website: http://www.imagemagick.org/script/formats.php