Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test 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 4th of December 2024 at 09:05 (Europe/London time).