⧼vector-jumptocontent⧽

Image field

From EPrints Documentation


Description

This field store images encoded as base64 data. This may be useful for logos, icons, avatars, etc.

Inheritance

Additional Properties

As for Base64 fields except for:

Name Default Value Required Description Notes
maxwidth 640 NO Maximum width in pixels of the stored image.
maxheight 480 NO Maximum height in pixels of the stored image.

Required Phrases

No additional phrases beyond those required for Base64 fields.

Database

Image fields are stored in the database as

 fieldname LONGTEXT

API

See API page.

Examples

Most basic example.

{
   name => 'picture',
   type => 'image',
}

Sets bespoke maximum width and height.

{
   name => 'icon',
   type => 'image',
   maxwidth => '64',
   maxheight => '64',
}