Resize images in frontend

Methods

@:keepcrop (w:Int, h:Int):ImageHandler

@:keepgetHeight ():Int

@:keepgetLink ():LinkData

@:keepgetMeta (?language:String):FieldApi

@:keepgetWidth ():Int

@:keepisEmpty ():Bool

@:keepresize (w:Int, h:Int):ImageHandler

@:keepsrc ():String

This function will alway return a cached version of the image, never the original. This is done in order to reflect file.modified time changes in the filename.

Returns:

The path at which the image is located, for example "admin/storage/__cache/dSn5E_imagename.png"

@:keeptoJson ():Dynamic

@:keeptoString ():String

Static variables

@:value("_cache/")@:keepstaticinlineread onlyCACHE_DIR:String = "_cache/"

Static methods

@:keepstaticcreateEmpty (api:Api):ImageHandler

@:keepstaticcreateFromFile (api:Api, file:File, ?link:LinkData):ImageHandler

@:keepstaticcreateFromPath (api:Api, path:String, ?link:LinkData):ImageHandler

@:keepstaticisValidPath (path:String):Bool