Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>After some tries and fails, I made ImageMagick (IM) work for me. Let me briefly describe how to work with ImageMagick from Coldfusion:</p> <ol> <li>Have ImageMagick and Ghostscript installed on box. Ghostscript is used for vector graphics manipulation.</li> <li><p>Make use of CFEXECUTE tag to call IM with parameters:</p> <p><code>&lt;cfexecute name="#FullIMPath#" timeout="60" arguments="""#ExpandPath(filename1)#"" ""#ExpandPath(filename2)#""" /&gt;</code></p></li> </ol> <p>Comments:</p> <p>a. Write full path to one of ImageMagic executables (for example, convert.exe) in 'name' attribute.</p> <p>b. Write full paths for source and target images. Please note additional quotes - if full path has spaces (C:\Program Files), you have to surround each image name in pair of quotes. Since Coldfusion parses 'arguments' attribute, you have to screen a quote with additional quote, like this - ""C:\Program Files\"".</p> <p>c. Use timeout attribute, to allow some time for ImageMagic to produce results before Coldfusion goes further with template execution.</p> <p>Thank you all for answers and interest.</p> <p>PS: Additional hints:</p> <ul> <li>ImageMagick offers many formats to work with - from regular JPEGs to Photoshop *.psd files. However, for vector formats like Encapsulated Postscript *.eps, you need to have Ghostscript installed;</li> <li>you may work with Adobe PDF and Adobe Illustrator (*.ai) formats with small hack - rename them to *.eps and let ImageMagick treat them like Encapsulated Postscript vector files. This allows at least to convert vector files to bitmaps;</li> <li>process is resource intensive, consider increasing JVM memory limits for Coldfusion.</li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload