gimp-image-thumbnail

Andy Thomas

Description

Get a thumbnail of an image.

Help

This function gets data from which a thumbnail of an image preview can be created. Maximum x or y dimension is 1024 pixels. The pixels are returned in RGB[A] or GRAY[A] format. The bpp return value gives the number of bits per pixel in the image.


Type

unknown

Parameters

Type Name Description
PF_IMAGE image The image
PF_INT width The requested thumbnail width (1 <= width <= 1024)
PF_INT height The requested thumbnail height (1 <= height <= 1024)

Return

Type Name Description
PF_INT actual-width The previews width
PF_INT actual-height The previews height
PF_INT bpp The previews bpp
PF_INT thumbnail-data-count The number of bytes in thumbnail data (thumbnail-data-count >= 0)
unknown thumbnail-data The thumbnail data