I have the following script in coldfusion 9:
<cfimage action="info" source="E:\....\image.png" structname="local.imageInfo">
The image is on a local drive. This action takes up about 4 seconds. File is about 800kb in size (300 dpi, png). This seems abnormal to me. Is there a way so speed this up? I only need the with and height of the image.
Btw doing a simple read action on the image is performed instantly
<cffile action="read" FILE="E:\....\image.png" VARIABLE="local.imageread">
If you are using Windows and ColdFusion 8+, consider using the free, portable command-line programs Exiv2 and GraphicsMagic. Exiv2 can read/write EXIF data using the command line and is faster than built-in CF functions.
http://www.exiv2.org/
GraphicsMagick is much faster at converting, resizing, cropping, rotating, generating thumbnails, not throwing an error when reading a CMYK image, etc.
http://www.graphicsmagick.org/
I've written ColdFusion 8-2016+ custom tags as wrappers for both portable command-line programs.
http://gamesover2600.tumblr.com/post/139435793234/coldfusion-udf-for-exiv2-faster-exif-image
http://gamesover2600.tumblr.com/post/125766251344/graphicsmagick-coldfusion-custom-tag