Supported platforms
Imaging Transcoding Library is available only for RHEL 7 and CentOS 7 distributions.
Usage
The command line arguments for Imaging Transcoding Library can include the following:
-destMime PNG/JPEG: Mime type of output rendition
-BitDepth 8/16: Preserves Bit Depth. Bitdepth ‘4’ is automatically converted to ‘8’
-preserveBitDepth: Downscales Bit Depth (No upscaling)
-preserveCMYK: Preserves CMYK color space
-jpegQuality: Provides jpeg quality parameter (0-12 , corresponding to Photoshop qualities)
-ResamplingMethod BiCubic/Lanczos/PSBicubic: Provides resampling methods. PSBicubic is a Photoshop quality resampling method.
-resize
You can configure the following options for the -resize
parameter:
-
X
:Works similar to AEM. For example -resize 319.
-
WxH
:Aspect Ratio will not be maintained, For example -resize 319X319.
-
Wx
:Fixes the width and calculates the height maintaining the aspect ratio. For example -resize 319x.
-
xH
:Fixes the height and calculates the width maintaining the aspect ratio. For example -resize x319.
-AllowUpsampling (Resizes smaller images)
-input <fileName>
-output <fileName>
Configure Imaging Transcoding Library
To configure ITL processing, create a configuration file and update the workflow to execute it.
Create configuration file for extracted bundle
To configure the library, create a .conf file to indicate the libraries using the following steps. You need administrator or root permissions.
-
Download the Imaging Transcoding Library package from Software Distribution and install it using the Package Manager. The package is compatible with Experience Manager 6.5.
-
To know a bundle id for
com.day.cq.dam.cq-dam-switchengine
, log in to the Web Console and tap OSGi > Bundles. Alternatively, to open the bundles console, accesshttps://[aem_server:[port]/system/console/bundles/
URL. Locatecom.day.cq.dam.cq-dam-switchengine
bundle and its ID. -
Ensure that all the required libraries are extracted, by checking the folder using the command
ls -la /aem64/author/crx-quickstart/launchpad/felix/bundle<id>/data/binaries/
, where the folder name is constructed using the bundle ID. For example, the command isls -la /aem64/author/crx-quickstart/launchpad/felix/bundle588/data/binaries/
if bundle id is588
. -
Create
SWitchEngineLibs.conf
file to link to the library.cd `/etc/ld.so.conf.d` touch SWitchEngineLibs.conf vi SWitchEngineLibs.conf
-
Add
/aem64/author/crx-quickstart/launchpad/felix/bundle<id>/data/binaries/
path to the conf file usingcat SWitchEngineLibs.conf
command. -
Execute
ldconfig
command to create the necessary links and cache. -
In the account that is used to start AEM, edit
.bash_profile
file. AddLD_LIBRARY_PATH
by adding the following.LD_LIBRARY_PATH=. export LD_LIBRARY_PATH
-
To ensure that the value of the path is set to
.
, useecho $LD_LIBRARY_PATH
command. The output should just be.
. If the value is not set to.
, restart the session.