craft-snippets / Craft-image-toolbox

Craft CMS plugin that helps with the use of image transforms in templates.
Other
16 stars 0 forks source link

2.3.0 - Broken update #25

Closed mofman closed 4 months ago

mofman commented 7 months ago

Getting all sorts of errors and strange behaviour in this release.

On my local environment, some images transform on page successfully and are displayed, others seem to transform but dont actually appear on page. Caching appears to be broken upon refreshing the page all images start transforming again.

On staging/live environment, plugin is completely broken - looks to be related to new AVIF functionality.

Screenshot 2024-04-05 at 15 12 00
piotrpog commented 7 months ago

For now you can disable avif transform by setting useAvif in the plugin config to false. i will soon release update that disabels avif by default.

Can you tell me if you use transform without image toolbox and set format to avif, do you also get errors? What shows up when you put {{dump(craft.app.images.supportsAvif())}} in your template?

piotrpog commented 4 months ago

The latest update for both craft 4 and craft 5 branches disables default avif generation. It can still be enabled using useAvif config option.