Project

General

Profile

Actions

Bug #98118

closed

Social images are not cropped anymore to their expected ratio

Added by Sascha Egerer over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
SEO
Target version:
Start date:
2022-08-10
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

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

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

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

What happened

  • Image Resolution is still 200x200
  • 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 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

Files

og_image_1200x630.jpg (54.2 KB) og_image_1200x630.jpg Kevin Appelt, 2022-08-12 07:32
og_image_200x200.jpg (13 KB) og_image_200x200.jpg Kevin Appelt, 2022-08-12 07:32
og_image_2000x800.jpg (86.5 KB) og_image_2000x800.jpg Kevin Appelt, 2022-08-12 07:32
og_image_2400x1260.jpg (146 KB) og_image_2400x1260.jpg Kevin Appelt, 2022-08-12 07:32

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #97248: social images are slightly cropped in EXT:seoClosedKevin Appelt2022-03-28

Actions
Actions

Also available in: Atom PDF