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
See also
cfimage, ImageGetEXIFMetadata, ImageGetEXIFTag, ImageGetBlob, ImageGetBufferedImage, ImageGetHeight,
ImageGetIPTCTag, ImageGetWidth, ImageInfo, IsImage, IsImageFile
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.
- AF Area Mode
- AF Assist Lamp
- Application Record Version
- Artist
- Audio
- Burst Mode
- By-line
- By-line Title
- Camera Uptime
- Caption Digest
- Caption Writer/Editor
- Caption/Abstract
- Color Effect
- Color Mode
- Color Space
- Component 1
- Component 2
- Component 3
- Components Configuration
- Compressed Bits Per Pixel
- Compression Type
- Contrast
- Contrast Mode
- Custom Rendered
- Data Precision
- Date Created
- Date/Time
- Date/Time Digitized
- Date/Time Original
- Digital Zoom Ratio
- Easy Mode
- Exif Image Height
- Exif Image Width
- Exif Version
- Exposure Bias Value
- Exposure Mode
- Exposure Program
- Exposure Time
- F-Number
- File Source
- Flash
- Flash Bias
- FlashPix Version
- Focal Length
- Focal Length 35
- Focus Mode
- Gain Control
- Headline
- ISO Speed Ratings
- Image Description
- Image Height
- Image Stabilization
- Image Width
- Internal Serial Number
- Macro Mode
- Make
- Max Aperture Value
- Metering Mode
- Model
- Noise Reduction
- Number of Components
- Orientation
- Print IM
- Quality Mode
- Record Mode
- Resolution Unit
- Resolution Units
- Rotation
- Saturation
- Scene Capture Type
- Scene Type
- Self Timer
- Sensing Method
- Sequence Number
- Sharpness
- Software
- Thumbnail Compression
- Thumbnail Length
- Thumbnail Offset
- Version
- White Balance
- White Balance Bias
- White Balance Mode
- X Resolution
- XMP Value Count
- Y Resolution
- YCbCr Positioning
If there are unknown values, the values will show up as the following:
- Unknown Data Dump
- Unknown tag (0x0027)
- 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>
|