Merge branch '1.6.x' into feat-heic-support

This commit is contained in:
Damodar Lohani 2024-10-02 11:55:52 +05:45 committed by GitHub
commit 12f8cf5c00
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -889,10 +889,6 @@ App::get('/v1/storage/buckets/:bucketId/files/:fileId/preview')
throw new Exception(Exception::STORAGE_FILE_NOT_FOUND);
}
if ((\strpos($request->getAccept(), 'image/webp') === false) && ('webp' === $output)) { // Fallback webp to jpeg when no browser support
$output = 'jpg';
}
$inputs = Config::getParam('storage-inputs');
$outputs = Config::getParam('storage-outputs');
$fileLogos = Config::getParam('storage-logos');