Skip to content

Kirby 5.0.4

Filename

The Filename class handles complex mapping of file attributes (i.e for thumbnails) into human readable filenames.

Examples

$filename = new Filename('some-file.jpg', '{{ name }}-{{ attributes }}.{{ extension }}', [
  'crop'    => 'top left',
  'width'   => 300,
  'height'  => 200
  'quality' => 80
]);