#98118Social images are not cropped anymore to their expected ratio
Description
Before #97248 images have been cropped to 1.91:1 ratio. This is not the case anymore. Images do now have a totally wrong ratio if the original file is not in the expected ratio.
So before this change an image with 200×200 has been cropped to 200×104. Now it is just rendered as 200×200.
The same if the image is 2000×800. Before this change it was cropped to 1522×800 and now it’s just rendered as 2000×800
What have I done
- Login and edit a page property
- Add an Image with a 200×200 resolution to “Social Media” Tab as OpenGraph Image or Twitter Card Image
- Save page properties
- Load Frontend View
What I expected
- the image is added to the og:image and og:image:url tag
- ratio of that image is 1.91:1
- Image is cropped to 200×104 resolution
- Image Path contains compressed folder
What happened
- Image Resolution is still 200×200
- Image ratio is 1:1
- Filepath is path to original file
Acceptance Test
- Use one of Example files as Open Graph Image or Twitter Card Image in page properties
- Original file 200×200 cropped to 200×104
- Original file 2000×800 cropped to 1522×800
- og:image and og:image:url tag contains something like “../fileadmin/_processed_/..” in file path