1 Reply Latest reply: Aug 28, 2014 5:25 AM by Praveen Gaur RSS

    Conversion issue using imagemagick

    Praveen Gaur

      Hello All,

       

      We are using imagemagick for converting images to different sizes and formats.

       

      Renditions are being generated but not of exact size as mentioned in 'extraRendition_definitions' file.

       

      For instance, size defined for 'Cart' rendition type is ImageMagick_RenditionValidation_Cart=-resize "220x220>" but the resulting rendition is generated of 220x90.

       

      I am using 'RenditionValidation' rendition-set to create renditions and attached is the image as the primary file.

       

      Following is the extraRendition_definitions.hda file:

       

      <?hda version="10.1.3.3.2 (071031)" jcharset=UTF8 encoding=utf-8?>

      @Properties LocalData

      nConvertPath=/home/oracle/softwares/installers/nconvert/NConvert/nconvert

      ImageMagick=/usr/bin/convert

      ImageMagickIdentifyPath=/usr/bin/identify

      ImageMagick_DefaultSet_Web=-resize 800x600

      ImageMagick_DefaultSet_Thumbnail=-resize "80x80>"

      ImageMagick_DefaultSet_Preview=-resize "250x250>"

      ImageMagick_DefaultSet_Primary=-resize "250x250>"

      ImageMagick_PraveenTestSet_PreviewTest=-resize "80x80>"

      ImageMagick_PraveenTestSet_ThumbnailTest=-resize "250x250>"

      ImageMagick_PraveenTestSet_WebTest=-resize "100x100>"

      ImageMagick_RenditionValidation_PDP=-resize "150x150>"

      ImageMagick_RenditionValidation_PLP=-resize "80x80>"

      ImageMagick_RenditionValidation_Cart=-resize "220x220>"

      ImageMagick_RenditionValidation_Banner=-resize "90x100>"

      ImageMagick_RenditionValidation_Summary=-resize "60x90>"

      ImageMagick_RenditionValidation_Confirmation=-resize "360x1400>"

      RenditionInfoEngine=ImageMagickIdentify

      @end

       

       

      @ResultSet packedConversion

      2

      pcName

      pcDescription

      DefaultGraphicSet

      Requires Default Rendition Set

      PraveenTestSet

      For testing the different sizes & formats

      CorporateImage

      Common Corporate Format Requirements

      ProductCatalog

      CMYK Hi Res and Proof Images for Print

      DigitalPhoto

      Digital Photos at various sizes

      WebImages

      Renditions for web applications and web images

      Print

      Renditions for pproductivity and layout applications

      @end

       

       

      @ResultSet DefaultGraphicSet

      6

      extRenditionName

      extEngine

      extType

      extSourceFile

      extParameters

      extDescription

      Web

      <$ImageMagick$>

      web

      <$InFilePath$>

      "<$inFile$>" <$ImageMagick_DefaultSet_Web$> "<$outFile$>.jpg"

      A 72 dpi JPEG no wider than 800 pixels and no higher than 600 pixels

      Thumbnail

      <$ImageMagick$>

      thumbnail

      <$InFilePath$>

      "<$inFile$>" <$ImageMagick_DefaultSet_Thumbnail$> "<$outFile$>.jpg"

      A 72 dpi JPEG no wider or higher than 80 pixels

      Preview

      <$ImageMagick$>

      preview

      <$InFilePath$>

      "<$inFile$>" <$ImageMagick_DefaultSet_Preview$> "<$outFile$>.jpg"

      A 72 dpi JPEG no wider or higher than 250 pixels

      @end

       

       

      @ResultSet PraveenTestSet

      6

      extRenditionName

      extEngine

      extType

      extSourceFile

      extParameters

      extDescription

      WebTest

      <$ImageMagick$>

      webtest

      <$InFilePath$>

      "<$inFile$>" <$ImageMagick_PraveenTestSet_WebTest$> "<$outFile$>.png"

      A 72 dpi JPEG no wider than 800 pixels and no higher than 600 pixels

      ThumbnailTest

      <$ImageMagick$>

      thumbnailtest

      <$InFilePath$>

      "<$inFile$>" <$ImageMagick_PraveenTestSet_ThumbnailTest$> "<$outFile$>.png"

      A 72 dpi JPEG no wider or higher than 80 pixels

      PreviewTest

      <$ImageMagick$>

      previewtest

      <$InFilePath$>

      "<$inFile$>" <$ImageMagick_PraveenTestSet_PreviewTest$> "<$outFile$>.png"

      A 72 dpi JPEG no wider or higher than 250 pixels

      @end

       

       

      @ResultSet RenditionValidation

      6

      extRenditionName

      extEngine

      extType

      extSourceFile

      extParameters

      extDescription

      PDP

      <$ImageMagick$>

      PDP

      <$InFilePath$>

      "<$inFile$>" <$ImageMagick_RenditionValidation_PDP$> "<$outFile$>.png"

      Image for PDP page

      PLP

      <$ImageMagick$>

      PLP

      <$InFilePath$>

      "<$inFile$>" <$ImageMagick_RenditionValidation_PLP$> "<$outFile$>.bmp"

      Image for PLP page

      Cart

      <$ImageMagick$>

      Cart

      <$InFilePath$>

      "<$inFile$>" <$ImageMagick_RenditionValidation_Cart$> "<$outFile$>.jpeg"

      Image for cart page

      Banner

      <$ImageMagick$>

      Banner

      <$InFilePath$>

      "<$inFile$>" <$ImageMagick_RenditionValidation_Banner$> "<$outFile$>.tiff"

      Image for banner

      Summary

      <$ImageMagick$>

      Summary

      <$InFilePath$>

      "<$inFile$>" <$ImageMagick_RenditionValidation_Summary$> "<$outFile$>.gif"

      Image for summary

      Confirmation

      <$ImageMagick$>

      Confirmation

      <$InFilePath$>

      "<$inFile$>" <$ImageMagick_RenditionValidation_Confirmation$> "<$outFile$>.bmp"

      Image for confirmation

      @end

       

       

      @ResultSet ExtensionFormatMap

      2

      extension

      format

      jpg

      image/jpeg

      jpeg

      image/jpeg

      gif

      image/gif

      png

      image/png

      tif

      image/tiff

      tiff

      image/tiff

      @end

       

       

      @ResultSet RenditionInfoFormatMap

      2

      rifmFormat

      rifmEngineName

      tif

      nConvert

      tiff

      nConvert

      @end

       

      ========

       

      Am i missing anything here, i need to generate the renditions of exact sizes as defined in 'RenditionValidation' set.

       

      Thanks,

      Praveen.