for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Conlect\ImageIIIF\Traits;
trait SupportedFormats
{
public function getSupportedFormats(string $driver)
$formats = [
'jpg',
'png',
'gif',
'webp',
];
if ($driver && $driver === 'imagick') {
$formats[] = 'jp2';
$formats[] = 'tif';
}
return $formats;