file_create_thumbnail


Description:


public bool file_create_thumbnail (Image image, File file)

Creates a thumbnail of image for the given file

This procedure creates a thumbnail for the given file and stores it according to relevant standards. In particular, it will follow the [Free Desktop Thumbnail Managing Standard](https://specifications.freedesktop.org/thumbnail-spec/late st/thumbsave.html) when relevant.

The thumbnail is stored so that it belongs to the given file. This means you have to save image under this name first. As a fallback, the call will work if image was exported or imported as file. In any other case, this procedure will fail.

Parameters:

image

The image.

file

The file the thumbnail belongs to.

Returns:

TRUE on success.


Namespace: Gimp
Package: gimp-3.0