When a digital asset is checked in to Content Server, Digital Asset Manager creates multiple renditions of that asset. For images, the criteria for each rendition is defined in one of two files. The default renditions set is defined in the damconverter_basedefinitions.hda file and should not be modified.
Custom rendition sets can be added to a component resource file called extraRendition_definitions.hda. This file can be created with a standard text editor and must be located in a new directory named dam in the refinery IntradocDir/data/configuration/ directory. The full file path should be:
C:\Oracle\Middleware\user_projects\domains\base_domain\ucm\ibr\data\configuration\dam\extraRendition_definitions.hda
Click on the Rendition Information Tab.
Custom rendition sets can be added to a component resource file called extraRendition_definitions.hda. This file can be created with a standard text editor and must be located in a new directory named dam in the refinery IntradocDir/data/configuration/ directory. The full file path should be:
C:\Oracle\Middleware\user_projects\domains\base_domain\ucm\ibr\data\configuration\dam\extraRendition_definitions.hda
@Properties LocalData
ImageMagick=C:/ImageMagick/convert.exe
Imagemagick_Resize=-resize
Imagemagick_Thumbnail=-resize 80x80
Imagemagick_Preview=-resize 250x250
Imagemagick_Watermark=-resize 400x300 -font impact -weight bold -pointsize 32 -draw
@end
@ResultSet packedConversion
2
pcName
pcDescription
Training
Digital Photos at various sizes
@end
@ResultSet Training
6
extRenditionName
extEngine
extType
extSourceFile
extParameters
extDescription
Web
<$ImageMagick$>
web
<$InFilePath$>
<$Imagemagick_Watermark$> "gravity northwest fill white text 10,12 '<$dDocTitle$>'" "<$inFile$>" "<$outFile$>.jpg"
A 72 dpi JPEG no wider than 400 pixels and no higher than 300 pixels
Thumbnail
<$ImageMagick$>
thumbnail
<$InFilePath$>
<$Imagemagick_Thumbnail$> "<$inFile$>" "<$outFile$>.jpg"
A 72 dpi JPEG no wider or higher than 80 pixels
Preview
<$ImageMagick$>
preview
<$InFilePath$>
<$Imagemagick_Preview$> "<$inFile$>" "<$outFile$>.jpg"
A 72 dpi JPEG no wider or higher than 250 pixels
@end
@ResultSet ExtensionFormatMap
2
extension
format
jpg
image/jpeg
jpeg
image/jpeg
gif
image/gif
png
image/png
tif
image/tiff
tiff
image/tiff
bmp
image/bmp
@end
After a rendition set is added to the extraRendition_definitions.hda file, it must be made available as an option in the Image Rendition Set field on the Content Check In Form, using Configuration Manager.
To add the name of the rendition set as an option in Configuration Manager, perform these steps:
1. In the Configuration Manager applet, select the PackagedConversions information field and click Edit. The Edit Custom Info screen is displayed.
2. Add the name of the new result set as it is listed in the extraRendition_definitions.hda file's packedConversion result set. In this case, add "Training".
Now upload a new image in Content Server. In the “Image Rendition Set” option, select “Training”. Click on the Check In button. Once it is uploaded successfully, you will see the below screen
1. In the Configuration Manager applet, select the PackagedConversions information field and click Edit. The Edit Custom Info screen is displayed.
2. Add the name of the new result set as it is listed in the extraRendition_definitions.hda file's packedConversion result set. In this case, add "Training".
Now upload a new image in Content Server. In the “Image Rendition Set” option, select “Training”. Click on the Check In button. Once it is uploaded successfully, you will see the below screen
Click on the Rendition Information Tab.
Check this link for watermarking image using Imagemagick:
https://community.oracle.com/thread/3729733
https://community.oracle.com/thread/3729733
No comments:
Post a Comment