Manage Image Presets managing-image-presets
Image Presets enable Adobe Experience Manager Assets to deliver images dynamically at different sizes, in different formats, or with other image properties that are generated dynamically. Each Image Preset represents a predefined collection of sizing and formatting commands for displaying images. When you create an Image Preset, you choose a size for image delivery. You also choose formatting commands so that the appearance of the image is optimized when the image is delivered for viewing.
Administrators can create presets for exporting assets. Users can choose a preset when they export images, which also reformat images to the specifications that the administrator specifies.
You can also create Image Presets that are responsive. If you apply a responsive Image Preset to your assets, they change depending on the device or screen size they are viewed on. You can configure Image Presets to use CMYK in the color space in addition to RGB or Gray.
This section describes how to create, modify, and generally manage Image Presets. You can apply an Image Preset to an image anytime you preview it. See Apply Image Presets.
Learn about Image Presets understanding-image-presets
Like a macro, an Image Preset is a predefined collection of sizing and formatting commands saved under a name. To understand how Image Presets work, suppose that your website requires each product image to appear in different sizes, different formats, and compression rates for desktop and mobile delivery.
You could create two Image Presets: 500 x 500 pixels for desktop and 150 x 150 pixels for mobile. You create two Image Presets, one called Enlarge
to display images at 500x500 pixels and one called Thumbnail
to display images at 150 x 150 pixels. To deliver images at the Enlarge
and Thumbnail
size, Experience Manager finds the definition of the Enlarge Image Preset
and Thumbnail Image Preset
. Then Experience Manager dynamically generates an image at the size and formatting specifications of each Image Preset.
Images that are reduced in size when they are delivered dynamically can lose sharpness and detail. For this reason, each Image Preset contains formatting controls for optimizing an image when it is delivered at a particular size. These controls make sure that your images are sharp and clear when they are delivered to your web site or application.
Administrators can create Image Presets. To create an Image Preset, you can start from scratch or you can start from an existing one and save it under a new name.
Manage Image Presets managing-image-presets-1
You manage your Image Presets in Experience Manager by selecting the Experience Manager logo to access the global navigation console and then selecting the Tools icon and navigating to Assets > Image Presets.
Adobe Illustrator (AI), PostScript® (EPS), and PDF file formats adobe-illustrator-ai-postscript-eps-and-pdf-file-formats
If you intend to support the ingestion of AI, EPS, and PDF files so that you can generate dynamic renditions of these file formats, review the following information before you create Image Presets.
Adobe Illustrator’s file format is a variant of PDF. The main differences, in the context of Experience Manager Assets, are the following:
- Adobe Illustrator documents consist of a single page with multiple layers. Each layer is extracted as a PNG subasset under the main Illustrator asset.
- PDF documents consist of one or more pages. Each page is extracted as a single page PDF subasset under the main multi-page PDF document.
The Create Sub Asset process
component creates the subassets within the overall DAM Update Asset
workflow. To see this process component within the workflow, navigate to Tools > Workflow > Models > DAM Update Asset > Edit.
You can view the subassets or the pages when you open the asset, select the Content menu, and select Subassets or Pages. The subassets are real assets. The Create Sub Asset
workflow component extracts the PDF pages. They are then stored as page1.pdf
, page2.pdf
, and so on, below the main asset. After they are stored, the DAM Update Asset
workflow processes them.
To use Dynamic Media to preview and generate dynamic renditions for AI, EPS or PDF files, the following processing steps are required:
-
In the
DAM Update Asset
workflow, theRasterize PDF/AI Image Preview Rendition
process component rasterizes the first page of the original asset – using the configured resolution – into acqdam.preview.png
rendition. -
The
Dynamic Media Process Image Assets
process component within the workflow optimizes thecqdam.preview.png
rendition into a PTIFF.
PDF/AI/EPS asset metadata properties pdf-ai-eps-asset-metadata-properties
dam:Physicalwidthininches
dam:Physicalheightininches
You access Rasterize PDF/AI Image Preview Rendition
process component options by way of the DAM Update Asset
workflow.
Select Adobe Experience Manager in the upper left, the click Tools > Workflow > Models. On the Workflow Models page, select DAM Update Asset, then on the toolbar select Edit. On the DAM Update Asset workflow page, double-select the Rasterize PDF/AI Image Preview Rendition
process component to open its Step Properties dialog box.
Rasterize PDF/AI Image Preview Rendition options rasterize-pdf-ai-image-preview-rendition-options
Arguments to rasterize PDF or AI workflow
application/postscript
application/illustrator
Using the default process arguments, the first page of a PDF/AI document is rasterized at 72 ppi and the generated preview image is sized at 2048 x 2048 pixels. For a typical deployment, you can increase the resolution to a minimum of 150 ppi or more. For example, a US letter size document at 300 ppi requires a maximum width and height of 2550 x 3300 pixels, respectively.
Max Width and Max Height limit the resolution at which to rasterize. For example, if the maximums are unchanged, and Resolution is set to 300 ppi, a US Letter document is rasterized at 186 ppi. That is, the document is 1581 x 2046 pixels.
The Rasterize PDF/AI Image Preview Rendition
process component has a maximum defined to ensure that it does not create overly large images in memory. Such large images can overflow the memory provided to the JVM (Java™ Virtual Machine). Care must be taken to provide the JVM with enough memory to manage the configured number of parallel workflows, with each having the potential to create an image at the maximum configured size.
InDesign (INDD) file format indesign-indd-file-format
If you intend to support the ingestion of INDD files so that you can generate dynamic rendition of this file format, review the following information before you create Image Presets.
For InDesign files, sub assets are extracted only if the Adobe InDesign Server is integrated with Experience Manager. Referenced assets are linked based on their metadata. InDesign Server is not required for linking. However, the referenced assets must be present within Experience Manager before the InDesign files are processed for the links to be created between the InDesign files and the referenced assets.
The Media Extraction process component in the DAM Update Asset
workflow runs several pre-configured Extend Scripts to process InDesign files.
The ExtendScript paths in the arguments of the Media Extraction process component in the DAM Update Asset workflow.
The following scripts are used by Dynamic Media integration:
thumbnail.jpg
rendition that is optimized and turned into a PTIFF rendition by Dynamic Media Process Image Assets
process component.DAM Update Asset
workflow optimizes and converts it into a PTIFF.Configure the image thumbnail size configuring-image-thumbnail-size
You can configure the size of thumbnails by configuring those settings in the DAM Update Asset workflow. There are two steps in the workflow where you can configure the thumbnail size of image assets. One (Dynamic Media Process Image Assets) is used for dynamic image assets. The other (Process Thumbnails) is used for static thumbnail generation or when all other processes fail to generate thumbnails. Regardless, both must have the same settings.
The Dynamic Media Process Image Assets step uses the image server to generate thumbnails, independently of the configuration applied to the Process Thumbnails step. Generating thumbnails through the Process Thumbnails step is the slowest and most memory intensive way to create thumbnails.
Thumbnail sizing is defined in the following format: widthcenter, for example, 80:80:false
. The width and height determine the size in pixels of the thumbnail. The center value is either false or true. If set to true, it indicates that the thumbnail image has exactly the size given in the configuration. If the resized image is smaller, it is centered within the thumbnail.
-
Thumbnail sizes for EPS files are configured in the EPS thumbnails step, in the Arguments tab under Thumbnails.
-
Thumbnail sizes for videos are configured in the FFmpeg thumbnails step, in the Process tab under Arguments.
To configure the image thumbnail size:
-
Navigate to Tools > Workflow > Models > DAM Update Asset > Edit.
-
Select the Dynamic Media Process Image Assets step and select the Thumbnails tab. Change the thumbnail size, as needed, then select OK.
-
Select the Process Thumbnails step, then select the Thumbnails tab. Change the thumbnail size, as needed, then select OK.
note note NOTE The values in the thumbnails argument in the Process Thumbnails step must match the thumbnails argument in the Dynamic Media Process Image Assets step. -
Select Save to save the changes to the workflow.
Increase or decrease the number of image presets that are displayed increasing-or-decreasing-the-number-of-image-presets-that-display
Image presets you create are available as dynamic renditions when you preview assets. Experience Manager shows various dynamic renditions when viewing an asset from Detail View > Renditions. You can increase or decrease the limit of renditions that are displayed.
To increase or decrease the number of image presets that are displayed:
-
Navigate to CRXDE Lite (https://localhost:4502/crx/de).
-
Navigate to the image preset listing node at
/libs/dam/gui/coral/content/commons/sidepanels/imagepresetsdetail/imgagepresetslist
-
In the limit property, change the Value, which is set to 15 by default, to the desired number.
-
Navigate to the image preset datasource at
/libs/dam/gui/coral/content/commons/sidepanels/imagepresetsdetail/imgagepresetslist/datasource
-
In the limit property, change the number to the desired number, for example,
{empty requestPathInfo.selectors[1] ? "20" : requestPathInfo.selectors[1]}
-
Select Save All.
Create Image Presets creating-image-presets
Create Image Presets so you can apply settings consistently across images when you preview or publish.
If you intend to support the ingestion of AI, PDF, and EPS files so that you can generate dynamic rendition of these file formats, review the following information before you create Image Presets.
See Adobe Illustrator (AI), PostScript® (EPS), and PDF file formats.
If you intend to support the ingestion of INDD files so that you can generate dynamic rendition of this file format, review the following information before you create Image Presets.
See InDesign (INDD) file format.
To create image presets:
-
In Experience Manager, select the Experience Manager logo to access the global navigation console, then go to Tools > Assets > Image Presets.
-
Select Create.
note note NOTE To make this Image Preset responsive, erase the values in the width and height fields and leave them blank. -
In the Edit Image Preset window, enter values into the Basic and Advanced tabs as appropriate, including a name. The options are outlined in Image Preset Options. Presets appear in the left pane and can be used on-the-fly with other assets.
-
Select Save.
Creating a responsive Image Preset creating-a-responsive-image-preset
To create a responsive Image Preset, perform the steps in Create image presets. When entering the height and width in the Edit Image Preset window, erase the values and leave them blank.
Leaving them blank tells Experience Manager that this Image Preset is responsive. You can adjust the other values as appropriate.
Image Preset options image-preset-options
When you create or edit Image Presets, you have the options described in this section. In addition, Adobe recommends these “best practice” option choices to start:
-
Format (Basic tab) - Select JPEG or another format that meets your requirements. All web browsers support the JPEG image format; it offers a good balance between small files sizes and image quality. However, JPEG format images use a lossy compression scheme that can introduce unwanted image artifacts if the compression setting is too low. For that reason, Adobe recommends setting the compression quality to 75. This setting offers a good balance between image quality and small file size.
-
Enable Simple Sharpening - Do not select Enable Simple Sharpening (this sharpening filter offers less control than Unsharp Masking settings).
-
Sharpening: Resampling Mode - Select Sharp2.
Basic tab options basic-tab-options
Choosing JPEG offers the following other options:
• Quality - The JPEG quality scale is 1-100. The scale is visible when you drag the slider.
• Enable JPG Chrominance Downsampling - Because the eye is less sensitive to high-frequency color information than high-frequency luminance, JPEG images divide image information into luminance and color components. When a JPEG image is compressed, the luminance component is left at full resolution, while the color components are downsampled by averaging together groups of pixels. Downsampling reduces the data volume to half or one-third with minimal impact on perceived quality. Downsampling is not applicable to grayscale images. This technique reduces the amount of compression useful for images with high contrast (for example, images with overlaid text).
Choosing GIF or GIF with alpha provides these additional GIF Color Quantization options:
• Type - Select Adaptive (default), Web, or Macintosh. If you select GIF with Alpha, the Macintosh option is not available.
• Dither - Select Diffuse or Off.
• Number of Colors - Enter a number 2 - 256.
• Color List - Enter a comma-separated list. For example, for white, gray, and black, enter
000000,888888,ffffff
.Choosing PDF, TIFF, or TIFF with alpha provides this additional option:
• Compression - Select a compression algorithm. Algorithm options for PDF are None, Zip, and Jpeg; for TIFF they are None, LZW, Jpeg, and Zip; and for TIFF with Alpha are None, LZW, and Zip.
Choosing PNG, PNG with Alpha, or EPS provides no additional options.
Advanced tab options advanced-tab-options
Define Image Preset options with image modifiers defining-image-preset-options-with-image-modifiers
In addition to the options available in the Basic and Advanced tabs, you can define image modifiers to give you more options when defining Image Presets. Image Rendering relies on the Dynamic Media Image Rendering API and is defined in detail in the HTTP Protocol Reference.
The following are some basic examples of what you can do with image modifiers.
-
op_invert - Inverts each color component for a negative image effect.
code language-xml &op_invert=1
-
op_blur - Applies a blur filter to the image.
code language-xml &op_blur=7
-
Combined commands - op_blur and op-invert
code language-xml &op_invert=1&op_blur=7
-
op_brightness - Decreases or increases the brightness.
code language-xml &op_brightness=58
-
opac - Adjusts image opacity. Lets you decrease the foreground opacity.
code language-xml opac=29
Edit image presets modifying-image-presets
-
In Experience Manager, select the Experience Manager logo to access the global navigation console, then go to Tools > Assets > Image Presets.
-
Select a preset and then select Edit. The Edit Image Preset window opens.
-
Make changes and select Save to save your changes or Cancel to cancel your changes.
Publish image presets publishing-image-presets
Image presets are automatically published for you.
Delete image presets deleting-image-presets
- In Experience Manager, select the Experience Manager logo to access the global navigation console and select the Tools icon.
- Navigate to Assets > Image Presets.
- Select a preset, and then select Delete. Dynamic Media confirms that you want to delete it. Select Delete to remove or select Cancel to return to Image Presets.