Skip to content

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

@kabel

Description

@kabel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions