Not 100% sure if it is a bug, but I couldn't manage to generate an 1x variant of an image transform (from a svg) for an image that had a user defined column size (and thus transform size). I could fix the issue by changing the twig template to always generate images on a specific width. Here's the original SVG I am trying to transform:
The x2 variant of the transform is generated without any issue; the file looks great when I open it in Finder, the permissions are the same like other files. But Craft can't seem to create the 1x transform. Perhaps this is because of this? : 286.66666666667xAUTO_crop_center-center_none
What happened?
Description
Not 100% sure if it is a bug, but I couldn't manage to generate an 1x variant of an image transform (from a svg) for an image that had a user defined column size (and thus transform size). I could fix the issue by changing the twig template to always generate images on a specific width. Here's the original SVG I am trying to transform:
Error log generated by this code:
The x2 variant of the transform is generated without any issue; the file looks great when I open it in Finder, the permissions are the same like other files. But Craft can't seem to create the 1x transform. Perhaps this is because of this? :
286.66666666667xAUTO_crop_center-center_none
Craft CMS version
3.7.47.1
PHP version
7.3.33
Operating system and version
Linux 5.10.104-linuxkit
Database type and version
MySQL 5.7.38
Image driver and version
Imagick 3.6.0 (ImageMagick 6.9.11-60)
Installed plugins and versions