Description

You can use this function to retrieve all metadata about the image including exif, IPTC, camera-specific information.

Returns

A structure containing information about the image.

Category

Image functions

Function syntax

ImageGetEXIFMetadata(name)

See also

cfimageImageGetEXIFMetadataImageGetEXIFTagImageGetBlobImageGetBufferedImageImageGetHeight
ImageGetIPTCTagImageGetWidthImageInfoIsImageIsImageFile

History

ColdFusion 11: Added this function.

Parameters

Parameter

Description

image

Required. The ColdFusion image on which this operation is performed.

List of metadata information returned by the function

These are the possible metadata values that are returned for an image because not all of the values are relevant for every image.

  1. AF Area Mode
  2. AF Assist Lamp
  3. Application Record Version
  4. Artist
  5. Audio
  6. Burst Mode
  7. By-line
  8. By-line Title
  9. Camera Uptime
  10. Caption Digest
  11. Caption Writer/Editor
  12. Caption/Abstract
  13. Color Effect
  14. Color Mode
  15. Color Space
  16. Component 1
  17. Component 2
  18. Component 3
  19. Components Configuration
  20. Compressed Bits Per Pixel
  21. Compression Type
  22. Contrast
  23. Contrast Mode
  24. Custom Rendered
  25. Data Precision
  26. Date Created
  27. Date/Time
  28. Date/Time Digitized
  29. Date/Time Original
  30. Digital Zoom Ratio
  31. Easy Mode
  32. Exif Image Height
  33. Exif Image Width
  34. Exif Version
  35. Exposure Bias Value
  36. Exposure Mode
  37. Exposure Program
  38. Exposure Time
  39. F-Number
  40. File Source
  41. Flash
  42. Flash Bias
  43. FlashPix Version
  44. Focal Length
  45. Focal Length 35
  46. Focus Mode
  47. Gain Control
  48. Headline 
  49. ISO Speed Ratings
  50. Image Description
  51. Image Height
  52. Image Stabilization
  53. Image Width
  54. Internal Serial Number
  55. Macro Mode
  56. Make
  57. Max Aperture Value
  58. Metering Mode
  59. Model
  60. Noise Reduction
  61. Number of Components
  62. Orientation
  63. Print IM
  64. Quality Mode
  65. Record Mode
  66. Resolution Unit
  67. Resolution Units
  68. Rotation
  69. Saturation
  70. Scene Capture Type
  71. Scene Type
  72. Self Timer
  73. Sensing Method
  74. Sequence Number
  75. Sharpness
  76. Software
  77. Thumbnail Compression
  78. Thumbnail Length
  79. Thumbnail Offset
  80. Version
  81. White Balance
  82. White Balance Bias
  83. White Balance Mode
  84. X Resolution
  85. XMP Value Count
  86. Y Resolution
  87. YCbCr Positioning

If there are unknown values, the values will show up as the following:

  1. Unknown Data Dump
  2. Unknown tag (0x0027)
  3. Unknown tag (0x002f)

Example

<cfimage action="read" name="myImage" source="../../MasterImages/sky.jpg">
<cfset getMetaData = ImageGetMetadata(myImage) >
<cfoutput>
Image Height : #getMetaData["Image Height"]#<BR>
Image Width : #getMetaData["Image Width"]#<BR>
Exif Version : #getMetaData["Exif Version"]#<BR>
</cfoutput>

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy