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

[4.x]: SVG with focal point breaks transforms, thumbnail generation #16258

Closed
kabel opened this issue Dec 2, 2024 · 2 comments
Closed

[4.x]: SVG with focal point breaks transforms, thumbnail generation #16258

kabel opened this issue Dec 2, 2024 · 2 comments

Comments

@kabel
Copy link

kabel commented Dec 2, 2024

What happened?

Description

I am using an asset field on an entry to generate some page CSS for background images. I've started to use SVG background images and would like to use the asset focal point feature to control the background-position in the entry template.

Steps to reproduce

  1. Upload an SVG as an asset
  2. Click the preview button
  3. Click the enable focal point button
  4. Drag and save the focal point
  5. Save the asset

Expected behavior

The asset is saved and a thumbnail of the asset is generated that either ignores the focal point or does as the source TODO mentions.

Actual behavior

An error is thrown and a message is written to the log.

[web.ERROR] [craft\errors\ImageTransformException] Failed to generate transform with id of #

Image

Craft CMS version

4.13.0

PHP version

8.3.8

Operating system and version

Linux 4.14.345-262.561.amzn2.x86_64

Database type and version

MySQL 8.0.35

Image driver and version

Imagick 3.7.0 (ImageMagick 6.9.13-11)

Installed plugins and versions

  • Amazon S3 2.2.1
  • CKEditor 3.10.0
@brandonkelly
Copy link
Member

Thanks for reporting that! Fixed for the next Craft 4 and 5 releases.

@brandonkelly
Copy link
Member

Craft 4.13.7 and 5.5.7 are out with that fix. Thanks again!

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

No branches or pull requests

2 participants