ibexa

Path

ez publish / technical manual / 3.7 / reference / objects / ezimagealiashandler


Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.

ezimagealiashandler

Summary

Contains information about an image.

Persistent

No.

Attributes

Attribute

Type

Description

alternative_text

string

The alternative image text (for example "Picture of an apple.").

original_filename

string

The original name of the image file (for example "apple.png").

is_valid

string

Returns either 1 or 0 (valid or invalid).

name of variation

array

Attribute

Type

Description

name

string

The name of the variation (for example "original").

width

string

The width as number of pixels (for example "320").

height

string

The height as number of pixels (for example "256").

mime_type

string

The MIME type (for example "image/png").

filename

string

The name of the file (for example "my_image.png").

suffix

string

The file suffix (for example "png").

dirpath

string

The path to the image (for example "var/storage/images/test/199-2-eng-GB").

basename

string

The basename of the image file (for example "apple").

alternative_text

string

The alternative image text (for example "Picture of an apple.").

text

string

Contains the "alternative_text" of the original image.

original_filename

string

The name of the original file (for example "apple.png").

url

string

Complete path + name of image file (for example "var/storage/images/test/199-2-eng-GB/apple.png").

alias_key

string

A internal CRC32 value which is used when an alias is created. This value is based on the filters that were used (parameters included) and is checked when an alias is accessed. If this values differs from the configured filters (in image.ini or an override), the system will recreate the alias.

timestamp

string

A UNIX timestamp pinpointing the exact date/time when the alias was last modified. For the "original" alias, the timestamp will reveal the time when the image was originally uploaded.

full_path

string

Complete path + name of image file (for example "var/storage/images/test/199-2-eng-GB/apple.png").

is_valid

string

TRUE if the alias was created properly, that means all conversion and filters were applied without problems. It will be FALSE if the image manager is wrongly configured or if there no compatible image converters could be found.

is_new

boolean

Will be set to TRUE the first time the alias is created, the next time (reload of the same page) it will be FALSE. It will also be set to TRUE every time the alias is re-created due to changes in filters (see alias_key).

filesize

integer

The number of bytes that the image consumes.

info

string

Contains extra information about the image, depending on the image type. It will typically contain EXIF information from digital cameras or information about animated GIFs. If there is no information, the info will be a boolean FALSE.

Balazs Halasy (29/03/2005 12:25 pm)

Svitlana Shatokhina (28/11/2006 9:49 am)

Balazs Halasy, Svitlana Shatokhina


Comments

  • Example

    You can use this code to show additional information of your original image in the "node/view/full" template of your image objects (where $node is your image node):
    <a href={$node.data_map.image.content[original].full_path|ezroot} target="_new">Open original Image in new window
    ({$node.data_map.image.content[original].width}x{$node.data_map.image.content[original].height} Pixel, {$node.data_map.image.content[original].filesize|div(1024)|round} KB)
    </a>
    
    • Re: Example

      The code is messed up.
      I'll try again:

      <a href={$node.data_map.image.content[original].full_path|ezroot} target="_new">Open original Image in new Window
      ({$node.data_map.image.content[original].width}x{$node.data_map.image.content[original].height} Pixel, {$node.data_map.image.content[original].filesize|div(1024)|round} KB)
      </a>