GetImageInfo vFileName[, vDataType]
| 0 (default) | Search for any data type. First found data will be processed. |
| 1 | Search for EXIF data only. |
| 2 | Search for IPTC data only. |
Set g = CreateObject("shotgraph.image")
file_name = "c:\files\image.jpg"
Set info = g.GetImageInfo(file_name,1)
Wscript.echo info("Model")
|
Set g = CreateObject("shotgraph.image")
filename = "c:\images\ixus.jpg"
Set info = g.GetImageInfo(filename)
s = ""
for each key in info
s = s & key & ": "
if IsArray(info(key)) then
ar = info(key)
for j = 0 to UBound(ar)
s = s & ar(j) & " "
next
s = s & Chr(13) & Chr(10)
else
s = s & info(key) & Chr(13) & Chr(10)
end if
Next
Wscript.echo s
|
| Type | Read-only. Contains type of retrieved data (1 - EXIF, 2 - IPTC). |
| ErrorCode | Read-only. Contains 0 if there were no errors. Other possible values:
1 - file can not be opened 2 - file can not be recognized as valid JPEG 3 - no EXIF or IPTC data in file. |
| Count | Read-only. Contains amount of retrieved keys. |
| Item("key") | Read-only. Contains value of retrieved key. The value is returned as ImageInfoUnit object. |
| Value | Read-only. Contains raw value of key represented by this object. |
| TextValue | Read-only. Contains human-readable form of value (if available). |
| Description | Read-only. Contains description of key (if available). |
| Name | Read-only. Contains name of the key. |
|
| Key | Value | Description |
|---|---|---|
| ApertureValue | 262144/65536 | The actual aperture value of lens when the image was taken. Unit is APEX. To convert this value to ordinary F-number(F-stop), calculate this value's power of root 2 (=1.4142). |
| CompressedBitsPerPixel | 3/1 | The average compression ratio of JPEG |
| DateTime | 2001:06:09 15:17:32 | Date/Time of image was last modified. |
| DateTimeDigitized | 2001:06:09 15:17:32 | Date/Time of image digitized. |
| DateTimeOriginal | 2001:06:09 15:17:32 | Date/Time of original image taken. |
| ExifImageHeight | 480 | Height of main image |
| ExifImageWidth | 640 | Width of main image |
| ExposureBiasValue | 0/3 | Exposure bias(compensation) value of taking picture. Unit is APEX(EV). |
| ExposureTime | 1/350 | Exposure time (reciprocal of shutter speed). Unit is second. |
| FNumber | 40/10 | The actual F-number(F-stop) of lens when the image was taken. |
| Flash | flash did not fire | Flash mode. |
| FocalLength | 346/32 | Focal length of lens used to take image. Unit is millimeter. |
| Make | Canon | Shows manufacturer of digicam. |
| MaxApertureValue | 194698/65536 | Maximum aperture value of lens. |
| MeteringMode | center weighted average | Exposure metering method. |
| Model | Canon DIGITAL IXUS | Shows model number of digicam. |
| Orientation | top, left side | The orientation of the camera relative to the scene, when the image was captured. |
| ResolutionUnit | Inch | Unit of XResolution/YResolution. |
| ShutterSpeedValue | 553859/65536 | Shutter speed by APEX value. To convert this value to ordinary 'Shutter Speed'; calculate this value's power of 2, then reciprocal. |
| SubjectDistance | 3750/1000 | Distance to focus point, unit is meter. |
| XResolution | 180/1 | Display/Print resolution of image. |
| YCbCrPositioning | 1 | When image format is YCbCr and uses 'Subsampling'(cropping of chroma data, all the digicam do that), defines the chroma sample point of subsampling pixel array. |
| YResolution | 180/1 | Display/Print resolution of image. |
| canon\Contrast | Normal | |
| canon\DriveMode | Single or timer | Continuous drive mode |
| canon\EasyShooting | Manual | 'Easy shooting' mode |
| canon\Firmware version | Firmware Version 1.0 | |
| canon\FlashMode | Auto | |
| canon\FocusMode | AI Servo | |
| canon\ISO | 0 | |
| canon\Image number | 1010163 | |
| canon\Image type | IMG:JPEG file | |
| canon\ImageSize | Small | |
| canon\MacroMode | Normal | |
| canon\MeteringMode | 0 | |
| canon\Owner name | Tom Rowan and Sarah Clifton | |
| canon\Saturation | Normal | |
| canon\Self-Timer | 0 | Length in 10ths of second |
| canon\Sharpness | Normal |