Image preview generation in Enterprise Server 10
Without installing additional components, Enterprise Server is capable of generating previews for the following types of images:
Note: Generating the images is handled by the Server plug-in named "PHP Preview and Metadata" (enabled by default).
Support for additional image formats — such as TIFF and PSD — can be added by installing one of the following applications (see "Installation steps" below):
- ImageMagick. Free software (under the General Public License), available for all major operating systems.
Visit the ImageMagick Web site
ImageMagick integration in Enterprise Server 10
- Ghostscript (for EPS and Adobe Illustrator support). Copyrighted and available under several licenses.
Visit the Ghostscript Web Site
Ghostscript integration in Enterprise Server 10
Enterprise is shipped with an ImageMagick Preview Server plug-in that can be activated after installing ImageMagick and optionally Ghostscript.
The ImageMagick Preview Server plug-in uses ImageMagick (and optionally Ghostscript) to generate previews from uploaded native files.
Note: Whether or not the image preview generation is actually handled by the plug-in depends on wether or not an image preview is already provided by the client application:
Uploading large images could lead to a heavy CPU load. Make sure that you have enough CPU power available on the server machine, or even set up a dedicated application server for this task and, for example, let photographers upload to it.
Tip: Alternatively, you can disable the ImageMagick Server plug-in and have no previews generated for uploaded PSD, PDF, AI, or EPS files. You could enable the PHP Preview and Metadata Server plug-in (enabled by default) to still have previews generated for JPG, GIF, or PNG files, which runs through PHP’s GD library and is a much lighter task.
However, this requires extra memory to be configured for the PHP processes and large images could run PHP out of memory which would block the image upload. For example, a 15 megapixel 24 bit RGB JPEG image takes roughly 10 MB to upload and 15 x (24/8) = 45 MB to extract (in PHP) before it can be processed.
For Mac OS X, a better choice is to use the Sips plug-in.
Using it with the PHP Preview and Metadata Server plug-in
When both the ImageMagick Preview and the PHP Preview and Metadata Server plug-ins are enabled, ImageMagick will only be used to create previews in the following image formats:
Preview creations of JPG, GIF, and PNG files is then controlled by the PHP Preview and Metadata plug-in—a much faster working setup.
Step 2. Set Read & Write access rights to the Temp subdirectory of the ATTACHMENTDIRECTORY for the Web Server user:
- Mac OS: “www”
- Windows: “IUSR_<servername>”
- Linux: “nobody”
Note: The ATTACHMENTDIRECTORY is specified in the config.php file.
Tip: (For Enterprise Server 10.1 or higher only) Easily manage and configure settings of all configuration files by adding them to a single configuration file.
Step 3. Ensure that the Web Server user has execute access for the ImageMagick and Ghostscript executables ("convert" and "gs").
Step 4. Install the ImageMagick Preview Enterprise Server plug-in. (See About the ImageMagick Preview Server plug-in.)