Skip to main content
December 18, 2006
Question

reading properties of jpg-files

  • December 18, 2006
  • 1 reply
  • 488 views
hello all,

is it possible to read the properties of an image-file (jpg) and write them into variables?
for example: date, shutter speed, with, height, camera, focus,... and many more data are included in a jpg-file.

thanks in advance,
rudy
This topic has been closed for replies.

1 reply

December 18, 2006

  1. Download Drew's metadata extraction library at: http://drewnoakes.com/code/exif/releases/ .
  2. Place metadata-extractor-2.3.1.jar in your lib directory (Typically C:\CFusionMX7\wwwroot\WEB-INF\lib for a standard windows installation).
  3. Restart the CF services.

Then the attached code should get you started...

December 18, 2006
See above to read meta data (like EXIF properties) of a JPEG file using Coldfusion.

(Adding tags to help any future searchers.)
December 18, 2006
hello,

thanks for the answer. i have already installed the *.jar in the CF library. i will test the code soon. the purpose is to collect the data from the jpg-file in several form-variables and write them into a database record (SQL server)

greetings,
rudy