Sitemap

Showing posts with label IBR. Show all posts
Showing posts with label IBR. Show all posts

Tuesday, May 19, 2015

UCM: Thumbnail generation

An interesting discussion was going on regarding the thumbnail generation in UCM. Refer these 2 links:
https://community.oracle.com/thread/3721623
https://community.oracle.com/thread/3723218

To summarize, you can use the basic set of thumbnail creation options provided with UCM (and no IBR). In order to access the thumbnail image use either of the services below.

  • GET_THUMBNAIL, pass the dDocName. This service is not documented in service reference guide but is present in the std_services.htm resource file.
  • GET_FILE, pass the dDocName as well as the Rendition, the value of which depends on what option you have selected in the Configure Thumbnail Options page as shown in the picture below (jpg, gif or png). Rendition=rendition:T OR rendition:P OR rendition:G. Also dRendition1 column of the Revisions table is populated with T/P/G.


NOTE: The native file has the dRenditionId value of "primaryFile". The Weblayout file has the dRenditionId value of "webViewableFile".  The attachment that you add gets stored with the dRenditionId value of "rendition:Z".

Sunday, April 5, 2015

UCM: Image Conversion Using DAM with ImageMagick

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

@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



Click on the Rendition Information Tab.


Check this link for watermarking image using Imagemagick:
https://community.oracle.com/thread/3729733

UCM Integration with Flipfactory

Refer the following link: http://docs.oracle.com/cd/E29542_01/doc.1111/e26693/ibr_dam.htm#BABBHJEI

1. Enable the relevant components

2. Installing Digital Asset Manager Video Plug-ins

3. Sharing Directories with FlipFactory


4. Setting the Conversion Engine Shared Directory Path

VideoStagingDir=C:\\Video_Staging\\
#VideoStagingDirFactoryContext=C:\\Video_Staging\\
RefineryFlipFactoryWatchRootDir=C:\\Video_Watch\\
#RefineryFlipFactoryWatchRootDirFactoryContext=C:\\Video_Watch\\
DefaultMediaPhysicalRoot-L237653P1416200=D:/Oracle/user_projects/domains/base_domain/ucm/cs/weblayout/



5. Select Manage Factories

6. Right click on Factories and select a new Factory.

7. Add Monitor => Oracle IBR Monitor

8. The "in" directory of the Watch Folder. Here the factory looks back regularly whether a conversion job is pending or not.

9. Process/Analyze => Video Analysis

10. Right click on Products and select a new Product. I selected Quicktime.

11. Add Destinations => Oracle IBR Transport

12. Give a Rendition Name

13. Save the configurations.

14. Upload a video file. Once the conversion is over, the rendition information page looks like below: