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 dimensions for resized SVG images #782

Open
davidlemaitre opened this issue Sep 25, 2024 · 1 comment
Open

Wrong dimensions for resized SVG images #782

davidlemaitre opened this issue Sep 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@davidlemaitre
Copy link

Describe the bug
I want to use a SVG image in a Text & Images content element with specified dimensions (imagewidth & imageheight fields) but the dimensions height and width are still the original dimensions in the JSON output. No issue with other image formats.

To Reproduce

  1. Create a "Text & Images" content element
  2. Add a SVG image
  3. Modify image dimensions
  4. See the dimensions height and width in the JSON output

Expected behavior
The dimensions height and width should be corresponding to the new dimensions of the SVG image.

TYPO3 version and TYPO3 Headless version
TYPO3 11.5.38
EXT:headless 3.4.2

Additional context
PHP 8.3

@davidlemaitre davidlemaitre added the bug Something isn't working label Sep 25, 2024
twoldanski added a commit that referenced this issue Sep 30, 2024
@twoldanski
Copy link
Collaborator

Hi @davidlemaitre in previous versions of TYP3 we had as far as I remember some issues with processing of SVG files, so we added check for not processing SVG files and it stuck for next versions, I created small PoC with additional flag for processing. In latest 4.x releases, I added same flag to process SVG if needed.

twoldanski added a commit that referenced this issue Oct 17, 2024
lukaszuznanski pushed a commit that referenced this issue Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants