Project

General

Profile

Bug #98118

Updated by Annett Jähnichen over 1 year ago

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 200x200 has been cropped to 200x104. Now it is just rendered as 200x200. 
 The same if the image is 2000x800. Before this change it was cropped to 1522x800 and now it's just rendered as 2000x800 

 h3. What have I done 

 * Login and edit a page property 
 * Add an Image with a 200x200 resolution to "Social Media" Tab as OpenGraph Image or Twitter Card Image 
 * Save page properties 
 * Load Frontend View 

 h3. 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 200x104 resolution 
 * Image Path contains compressed folder 

 h3. What happened 

 * Image Resolution is still 200x200 
 * Image ratio is 1:1 
 * Filepath is path to original file 

 h2. Acceptance Test 

 * Use one of Example files as Open Graph Image or Twitter Card Image in page properties 
 * Original file 200x200 cropped to 200x104 
 * Original file 2000x800 cropped to 1522x800 
 * og:image and og:image:url tag contains something like "../fileadmin/_processed_/.." in file path 
 

Back