Image
A representation of an image file with dimensions, optional exif data and a connection to our darkroom classes to resize/crop images.
-
new Image()
-
$image->base64()
-
$image->clone()
-
$image->copy()
-
$image->dataUri()
-
$image->delete()
-
$image->dimensions()
-
$image->download()
-
$image->exif()
-
$image->exists()
-
$image->extension()
-
$image->filename()
-
$image->hardcopy()
-
$image->hash()
-
$image->header()
-
$image->height()
-
$image->html()
-
$image->imagesize()
-
$image->is()
-
$image->isLandscape()
-
$image->isPortrait()
-
$image->isReadable()
-
$image->isResizable()
-
$image->isSquare()
-
$image->isViewable()
-
$image->isWritable()
-
$image->kirby()
-
$image->match()
-
$image->mime()
-
$image->modified()
-
$image->move()
-
$image->name()
-
$image->niceSize()
-
$image->orientation()
-
$image->ratio()
-
$image->read()
-
$image->realpath()
-
$image->rename()
-
$image->root()
-
$image->sanitizeContents()
-
$image->sha1()
-
$image->size()
-
$image->toArray()
-
$image->toJson()
-
$image->type()
-
$image->url()
-
$image->validateContents()
-
$image->width()
-
$image->write()
If you use or echo the $image
object as string, it will be returned as HTML <img>
tag.