In previous versions I had to do it by my own with help of () package: I could resize and rotate an image according to EXIF orientation tag. This is very useful and convenient feature. In Strapi of version beta.20 there is a new poss … ibility - creation of thumbnails of images. Sharp library has a feature for doing that called `withMetadata`. Now you'll see that the image is upright, as expected. Now with the 'Enable size optimization' disabled in `/admin/settings/media-library`. Now you'll see that the image is tilted 90 degrees.ġ. Open the image from `/admin/plugins/upload`. Upload an image taken in portrait-mode.ģ.
With the 'Enable size optimization' enabled in `/admin/settings/media-library`.Ģ. The consequence for us, is that the rotation flag is missing, and we do not have anyway to know in which rotation the image should be displayed.ġ.
When uploading images, with the 'Enable size optimizatio … n' enabled, the EXIF data is being removed.