ImageEn, unit iexBitmaps

TIOParams.UpdateEXIFThumbnail

TIOParams.UpdateEXIFThumbnail


Declaration

procedure UpdateEXIFThumbnail(Width: integer = 256; Height: integer = 256; ResampleFilter: TResampleFilter = rfTriangle; MaintainAspectRatio: Boolean = True);


Description

Updates the EXIF_Bitmap property with the content of current image.
You should call this method just before saving a JPEG so the thumbnail is consistent with the saved image.

Note: This method is only useful for JPEG images. EXIF thumbnails are not saved for other formats

Parameter Description
Width Width of the thumbnail
Height Height of the thumbnail
ResampleFilter Interpolation filter to use when resampling
MaintainAspectRatio Automatically reduces Width or Height to ensure the original proportions of the image are maintained

Note:
EXIF thumbnails are stored in TIFF format (with JPEG compression). There is a 64KB maximum size
The EXIF thumbnail will not be saved if EXIF_HasEXIFData = False


Example

ImageEnView1.IO.LoadFromFile('C:\input.jpg');
ImageEnView1.Proc.Negative();
ImageEnView1.IO.Params.UpdateEXIFThumbnail;
ImageEnView1.IO.SaveToFile('D:\output.jpg');