Collections functions
General functions
Render functions
Theme permission functions
Resource functions

Table: preview_size

Defines preview sizes used for resource preview and thumbnail generation.

ColumnTypeNote
refint(11)Auto incrementing index
idchar(3)Short code e.g. 'scr', 'lpr'
widthint(11)Width in pixels
heightint(11)Height in pixels
padtosizeint(11)(boolean) Add padding to make image required size. If set to 0 the image will be scaled to fit within the defined dimensions
namevarchar(50)Friendly name
internalint(11)(boolean) For system use. Prevents deletion.
allow_previewint(11)(boolean) Show a link to preview this size on the resource view page?
allow_restrictedint(11)(boolean) Allow users with restricted access to see this preview size
qualityint(3)JPEG quality

Default contents are as follows.

refidwidthheightpadtosizenameinternalallow_previewallow_restrictedquality
1thm2002000Thumbnail1000
2pre9004800Preview1010
3scr14008000Screen0100
4lpr200020000Low resolution print0000
5hpr9999999999990High resolution print0000
6col100750Collection1000

Please see the schema overview for context. This document was last updated on the 30th of September 2022 at 17:05 (Europe/London time).