objects
PageImage
A PageFile that is an image. transform() (and the src()/srcset() helpers built on it) only compute the target variant URL and record the requested options via Registry::setVariant() : no pixels are touched here.
The variant is rendered on first request, when Page::route() dispatches to PageFiles::variant(), which is the only place that actually decodes and re-encodes image bytes.
$pageImage
Phlat\Files\PageImage
extends PageFile
22 methods
Properties (14)
| $pageImage->pageUuid | string | readonly | |
| $pageImage->filename | string | readonly | |
| $pageImage->fields | array | readonly | Custom metadata values, keyed by field name - declared under files/{type}/_index.json's own "fields" key ($this->type: image, video, audio, document, ...), resolved lazily via field()/fieldSet(). |
| $pageImage->uri | string | readonly | |
| $pageImage->name | ?string | readonly | |
| $pageImage->directory | ?string | readonly | |
| $pageImage->basename | ?string | readonly | |
| $pageImage->extension | ?string | readonly | |
| $pageImage->modified | ?int | readonly | |
| $pageImage->size | ?int | readonly | |
| $pageImage->contents | ?string | ||
| $pageImage->mime | ?string | ||
| $pageImage->type | ?string | ||
| $pageImage->path | string | readonly |
Show