Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong image dimensions in content preview #23

Open
rtp-cgs opened this issue Sep 2, 2024 · 2 comments
Open

Wrong image dimensions in content preview #23

rtp-cgs opened this issue Sep 2, 2024 · 2 comments
Assignees
Labels
Milestone

Comments

@rtp-cgs
Copy link
Contributor

rtp-cgs commented Sep 2, 2024

When using BackendUtility::thumbCode to generate a preview thumbnail the image dimensions are not the same as when using the core processing. I noticed this in the content preview in the backend as you can see in the screenshot.

With somehow-digital/typo3-media-processing package:
CleanShot 2024-09-02 at 10 22 37

With core processing:
CleanShot 2024-09-02 at 10 04 37

@rtp-cgs rtp-cgs changed the title Wrong crop type when using BackendUtility::thumbCode Wrong image dimensions in content preview Sep 2, 2024
@thasmo thasmo self-assigned this Sep 2, 2024
@thasmo thasmo added this to the 1.0 milestone Sep 2, 2024
@thasmo
Copy link
Member

thasmo commented Sep 2, 2024

During initial quick testing, when turning BE processing of media_processing on and off the dimensions of the generated image are identical for ImgProxy and ImageMagick, in my case.

On your first screenshot, the (square) image looks squished as if the original file's dimensions could be correct but the img tag uses wrong dimensions, maybe.

What type of image did you use? Is this a PDF?

@thasmo thasmo added the bug label Sep 2, 2024
@rtp-cgs
Copy link
Contributor Author

rtp-cgs commented Sep 5, 2024

The image is a regular JPG and I used the default image element of fluid_styled_content no changes made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants