Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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
2pre9005400Preview1010
3scr14008000Screen0100
4lpr200020000Low resolution print0000
5hpr9999999999990High resolution print0000
6col100750Collection1000

Please see the schema overview for context. This document was last updated on the 19th of March 2024 at 05:35 (Europe/London time).