ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Windows functions / EXIF functions
  • Correspondence between tags and constants
  • Error management
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
ImageInfoList (Function)
In french: ImageInfoListe
Returns the list of Exif tags available for the image used.
Remarks:
  • The Exif (EXchangeable Image File) information is included in the image file. This standard defines a set of markers for storing a wide range of image-related information: date, width, orientation, camera model, shutter speed, subject distance, exposure time, etc.
  • To handle the Exif tags of an image, use the Exif property of Image variables. This property can be used on Android applications.
Example
ListeMarqueur is string 
MonMarqueur is int 
i is int = 1 
// Récupération des marqueurs disponibles pour 
// l'image JPEG affichée dans le champ Image "IMG_MonChampImage" 
ListeMarqueur = ImageInfoList(IMG_MonChampImage) 
WHILE ExtractString(ListeMarqueur, i, CR) <> EOT 
	// Récupération de chaque marqueur 
	MonMarqueur = ExtractString(ListeMarqueur, i, CR) 
	// Ajout du marqueur et de sa valeur dans la table TABLE_MaTable 
	TableAddLine(TABLE_MaTable, MonMarqueur, ... 
			ImageInfoValue(IMG_MonChampImage, MonMarqueur)) 
	i ++ 
END
Syntax
<Result> = ImageInfoList(<Image>)
<Result>: Character string
List of Exif tags available for the image used. Each tab corresponds to an integer and is separated by a RC character (Carriage Return).
<Image>: Character string
Image to use. This image can correspond to:
  • an image file (JPEG or TIFF format): specify the name and full (or relative) path of the file. A UNC path can be used.
    In this case, the file must be closed by ImageInfoClose.
  • an image (JPEG or TIFF format) displayed in an Image control: specify the name of the Image control.
  • an image (JPEG or TIFF format) contained in a picture memo: specify the picture memo.
  • an image (JPEG or TIFF format) contained in a binary string: specify the binary string.
Remarks

Correspondence between tags and constants

The table below presents the correspondence between tags and WLanguage constants. These tags and constants can be passed as parameter to ImageInfoValue to find out the value of the tag.
TagWLanguage constant Value
37510imgCommentCharacter string
Comments about the image
37122imgCompressionReal
Compression of the image in bits/pixel
33432imgCopyrightCharacter string
Copyright of the image
306imgDateDate
Date and time of the image in YYYY:MM:DD HH:MM:SS format
270imgDescriptionCharacter string
Image description
37382imgSubjectDistanceReal
Distance from the subject in meters
37380imgExposureBiasReal
Exposure bias in APEX
37385imgFlashInteger
Status of the flash during the shot:
  • 0: Flash not triggered.
  • 1: Flash on.
  • 5: Flash triggered and return light not detected.
  • 7: Flash triggered and return light detected.
928imgHeightInteger
Image height in pixels
672imgWidthInteger
Image width in pixels
305imgRecordingSoftwareCharacter string
Name of the software that was used to record the image
37386imgFocalLengthReal
Focal length in millimeters
37379imgBrightnessReal
Brightness of the image in APEX
271imgDeviceMarkCharacter string
Mark of the camera that took the photo
272imgDeviceModelCharacter string
Model of camera that took the photo
37383imgMeteringModeInteger
Metering mode:
  • 0: unknown.
  • 1: average.
  • 2: centered mean.
  • 3: dot.
  • 4: multipoint.
  • 5: motif.
  • 6: partial.
  • 7 to 254: reserved.
  • 255: other.
37500imgManufacturerNoteCharacter string
Name of the camera manufacturer
274imgOrientationInteger
Orientation of the image:
  • 1 to 4: landscape.
  • 5 to 8: portrait.
37378imgApertureReal
Aperture in APEX
33437imgFApertureReal
Focal
37381imgMaxApertureReal
Maximum aperture in APEX
34850imgExposureProgramInteger
Exposure mode used during the shot:
  • 0: undefined.
  • 1: manual.
  • 2: normal.
  • 3: aperture priority.
  • 4: speed priority.
  • 5: creative.
  • 6: action.
  • 7: meadow portrait without background.
  • 8: landscape.
  • 9 to 255: other.
282imgXResolutionReal
Horizontal resolution of the image
283imgYResolutionReal
Vertical resolution of the image
37384imgLightSourceInteger
Light source for the image:
  • 0: unknown.
  • 1: daylight.
  • 2: fluorescent.
  • 3: tungsten.
  • 17: standard light A.
  • 18: standard light B.
  • 19: standard light C.
  • 20: D55.
  • 21: D65.
  • 22: D75.
  • 23 to 254: reserved.
  • 255: other.
33434imgExposureTimeReal
Exposure time
296imgResolutionUnitInteger
Unit for the horizontal and vertical resolution of the image:
  • 2: inches.
  • 3: centimetres.
36864imgEXIFVersionCharacter string
Version of Exif information
65536imgThumbnailBinary string
Thumbnail corresponding to the image
37377imgShutterSpeedReal
Shutter speed in APEX
Other tags are also available. These unlisted tags are specific to some types of cameras or correspond to custom tags.

Error management

ImageInfoList returns no error code. To determine if this function generated an error, use the ErrorOccurred variable. If an error occurs, you can get more details on the error with ErrorInfo.
Related Examples:
The EXIF functions Unit examples (WINDEV): The EXIF functions
[ + ] Using the ImageXXX functions.
These functions are used to access the EXIF information of an image.
The EXIF information is included in the JPEG or TIFF images.
It can be for example the snapshot date, the orientation of the device when taking the photo, the make and model of the camera, a miniature of the image...
Component: wd300img.dll
See also
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help