Flip image googel docs

broken image

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.ģ.

broken image

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.ġ.

broken image
broken image

When uploading images, with the 'Enable size optimizatio … n' enabled, the EXIF data is being removed.

broken image