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
  • Image displayed in an Image control
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
ImageInfoSave (Function)
In french: ImageInfoSauve
Saves the modifications performed on the Exif tags of an image by ImageInfoModify.
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.
  • dSaveImageJPEG can also be used to save changes made to the Exif tags of an image in an Image control or a variable of type Image.
  • To handle the Exif tags of an image, use the Exif property of Image variables. This property can be used on Android applications.
Example
CheminImg is string = "C:\Voyage\Maurice1.JPG" 
// Modification du copyright et de la description
ImageInfoModify(CheminImg, imgCopyright, "PC Soft" + DateSys())
ImageInfoModify(CheminImg, imgDescription, "Paysage de rêve")
// Enregistrement de la modification dans le
// même fichier image
ImageInfoSave(CheminImg)
// Fermeture du fichier image
ImageInfoClose(CheminImg)
// Modification des commentaires de l'image
// affichée dans le champ Image "IMG_MonChampImage"
ImageInfoModify(IMG_MonChampImage, imgComment, "Belles gorgones")
// Enregistrement de la modification dans le
// fichier "C:\Plongees\Gorgone1.JPG"
ImageInfoSave(MonChampImage, "C:\Plongees\Gorgone1.JPG", 100)
Syntax
<Result> = ImageInfoSave(<Image> [, <New image> [, <Quality>]])
<Result>: Boolean
  • True if the modifications have been recorded,
  • False otherwise. To get more details on the error, use ErrorInfo.
<Image>: Character string
Image to use. This image can correspond to:
  • an image file (JPEG 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 displayed in an Image control: specify the name of the Image control. If this image is not in JPEG format, it will be automatically converted to this format.
  • an image (JPEG format) contained in a picture memo: specify this picture memo.
  • an image (JPEG format) contained in a binary string: specify this binary string.
<New image>: Optional character string
Name and full (or relative) path of the new JPEG file. A UNC path can be used.
If <Image> corresponds to an image file, this parameter is optional. In this case, the <Image> file will be modified.
If <Image> corresponds to an image displayed in an Image control, only the visible section of the image displayed in the Image control will be saved. The Exif tags will be kept.
<Quality>: Optional integer
Quality of the image saved. Value between 1 and 100 (80 by default). The lower the image quality will be, the higher the compression rate of the image will be and the smaller the file size will be.
This parameter is taken into account only if <Image> corresponds to an image displayed in an Image control. Otherwise, this parameter is ignored.
Remarks

Image displayed in an Image control

dSaveImageJPEG can also be used to save the modifications performed on the Exif tags of an image displayed in an Image control.
The following syntaxes are equivalent:
// Enregistrement des modifications
ImageInfoSave(MonChampImage, "C:\Mes Images\PlongeeMaurice.JPG", 100)
// Enregistrement des modifications
dSaveImageJPEG(MonChampImage, "C:\Mes Images\PlongeeMaurice.JPG", 100, imgSaveTag)
Reminder Only the visible part of the image displayed in the Image control is saved. The Exif tags will be kept.
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/28/2025

Send a report | Local help