You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a generic image rendering template which handles all manner of images (jpg, svg, gif, etc.). This has a generic transform to 'webp' which is bypassed (in template macros) for 'svg' and 'gif'. The template also provides srcset "2x" where available. This was working fine until we upgraded from 4.4.16.1 to 4.5.3, as the format was being replaced with 'null'.
Now the getSrcset function returns " 2x" with a blank URL. Only after removing the transform for all svg and gif AND removing srcset when it matches " 2x" does the image render.
transformGifs disabled in general.php and we no longer transform svg or gif sizes.
Steps to reproduce
Add an entry with a gif or svg
Add a transform in the template to adjust the size and format
Add transformGifs => false in the config
Add a img tag call with srcset enabled for '2x'
You'll note that the image URL is empty
Removing the srcset attribute is not enough. Both the transform AND srcset MUST be removed in order to render the gif.
Expected behavior
Expected the gif to render according to the new size parameters and still play
Actual behavior
Srcset values are just " 2x" and no image is rendered.
Craft CMS version
4.5.3
PHP version
8.1.10
Operating system and version
Linux 5.10.0-23-cloud-amd64
Database type and version
MariaDB 10.6.9
Image driver and version
Imagick 3.7.0 (ImageMagick 6.9.11-60)
Installed plugins and versions
Amazon S3 2.0.3
Asset Rev 7.0.0
Blitz 4.5.2
Colorit 4.0.0
Colour Swatches 4.3.0
Control Panel CSS 2.6.0
Default Dashboard 2.0.0
Element API 3.0.1.1
Feed Me 5.2.0
Mix 1.6.0
Navigation 2.0.20
Neo 3.8.6
oEmbed 2.3.0
Prism 3.0.0
Redactor 3.0.4
Redactor Custom Styles 4.0.3
Redirects 4.1.13
SEO 4.2.1
Super Table 3.0.9
Twig Helper 1.0.0
Typed link field 2.1.5
Wordsmith 4.2.0
The text was updated successfully, but these errors were encountered:
What happened?
Description
We have a generic image rendering template which handles all manner of images (jpg, svg, gif, etc.). This has a generic transform to 'webp' which is bypassed (in template macros) for 'svg' and 'gif'. The template also provides srcset "2x" where available. This was working fine until we upgraded from 4.4.16.1 to 4.5.3, as the format was being replaced with 'null'.
Now the getSrcset function returns " 2x" with a blank URL. Only after removing the transform for all svg and gif AND removing srcset when it matches " 2x" does the image render.
transformGifs disabled in general.php and we no longer transform svg or gif sizes.
Steps to reproduce
Removing the srcset attribute is not enough. Both the transform AND srcset MUST be removed in order to render the gif.
Expected behavior
Expected the gif to render according to the new size parameters and still play
Actual behavior
Srcset values are just " 2x" and no image is rendered.
Craft CMS version
4.5.3
PHP version
8.1.10
Operating system and version
Linux 5.10.0-23-cloud-amd64
Database type and version
MariaDB 10.6.9
Image driver and version
Imagick 3.7.0 (ImageMagick 6.9.11-60)
Installed plugins and versions
Amazon S3 2.0.3
Asset Rev 7.0.0
Blitz 4.5.2
Colorit 4.0.0
Colour Swatches 4.3.0
Control Panel CSS 2.6.0
Default Dashboard 2.0.0
Element API 3.0.1.1
Feed Me 5.2.0
Mix 1.6.0
Navigation 2.0.20
Neo 3.8.6
oEmbed 2.3.0
Prism 3.0.0
Redactor 3.0.4
Redactor Custom Styles 4.0.3
Redirects 4.1.13
SEO 4.2.1
Super Table 3.0.9
Twig Helper 1.0.0
Typed link field 2.1.5
Wordsmith 4.2.0
The text was updated successfully, but these errors were encountered: