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:
Pyll Gomez
2021-02-22 17:10:24 -05:00
committed by GitHub
parent 20e2905f74
commit 08e4400935

View File

@@ -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