Thumbnail Property

Search
Feedback

A Thumbnail Property is a special property that can be used on Image objects to create a custom thumbnail image.

A Thumbnail Property

Details

Structr will create Thumbnail Images for all images automatically, but the size of these thumbnails is tailored for the Structr User Interface. If an application requires custom-sized thumbnails, this property can be used.

The dimensions of the custom thumbnail image can be specified in the Format/Code field. The values are expected as a comma-separated list in the following format:

width:  Integer
height: Integer
crop:   Boolean (optional)
JSON Output
{
    "query_time": "0.000897187",
    "result_count": 1,
    "result": {
       "thumbnail": {
         "id": "534ad12ecd3d4a8e972ac5055ca86565",
         "contentType": "image/png",
         "size": 5660,
         "isFile": true,
         "type": "Image",
         "name": "image.png_thumb_200x100",
         "width": 200,
         "height": 100,
         "tnSmall": null,
         "tnMid": null,
         "isThumbnail": true,
         "path": "/image.png_thumb_200x100",
         "isImage": true
       }
    },
    "serialization_time": "0.000051543"
}

Graph-Browser