CONVERT PICTURE

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 11


CONVERT PICTURE (picture; codec)

ParameterTypeDescription
picturePicturePicture to be converted
Converted picture
codecStringPicture Codec ID

Description

The CONVERT PICTURE command converts picture into a new type.

The codec parameter indicates the type of picture to be generated. A Codec can be an extension (for example, ".gif"), a Mime type (for example, "image/jpeg") or a 4-character QuickTime code (for example, "PNTG"). You can get a list of Codecs that are available using the PICTURE CODEC LIST command.

If the picture field or variable is a compound type (if, for example, it is the result of a copy-paste action), only the information corresponding to the codec type are preserved in the resulting picture.

Example

Conversion of the vpPhoto picture to the jpeg format:

   CONVERT PICTURE(vpPhoto;".jpg") 

See Also

PICTURE CODEC LIST.


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next