mirror of
https://github.com/directus/directus.git
synced 2026-01-23 18:18:03 -05:00
Fix for generating meta data gif and tiff images (#4230)
* Rotate JPG image on upload #4206 * fixes #3949 width/height generated for gif and tif
This commit is contained in:
@@ -48,7 +48,7 @@ export class FilesService extends ItemsService {
|
||||
payload.type = 'application/octet-stream';
|
||||
}
|
||||
|
||||
if (['image/jpeg', 'image/png', 'image/webp'].includes(payload.type)) {
|
||||
if (['image/jpeg', 'image/png', 'image/webp', 'image/gif', 'image/tiff'].includes(payload.type)) {
|
||||
const pipeline = sharp();
|
||||
|
||||
pipeline
|
||||
|
||||
Reference in New Issue
Block a user