nystudio107/craft-imageoptimize

Thumbnails of image files in the assets index are not displayed

mihob opened this issue ยท 8 comments

mihob commented

Describe the bug

Since version 4.3.0 of craft (the index pages have been reworked) the thumbnails in the assets index are no longer displayed when ImageOptimize is enabled. Only a generic icon of the file type is displayed. When Image Optimize is disabled, everything works as expected.

To reproduce

Steps to reproduce the behaviour:

  1. Go to "Assets"

Expected behaviour

Thumbnails of image files should be displayed

Screenshots

asset-index

Versions

  • Plugin version: 4.0.2
  • Craft version: Craft Pro 4.3.0

I will have a look; sounds like they changed something with regards to image transforms.

mihob commented

Yes, if I see it correctly, the bug does not only affect the asset index, at the moment no images are output at all.

mihob commented

Any news on this?

I can confirm that issue. I ran into it after updating to Craft 4.3.0. All the images in the CP and frontend are gone. Disabling ImageOptimize brought back the images in the CP and the ones not optimized by the plugin.

Having a look at the changelog.md, there are two tickets (9622, 11970) directly tied to transforms.

Downgrading to 4.2.8 also fixed the issue for us

Same here, Craft 4.3.0 + ImageOptimize breaks all image transforms (CP and front-end).

This was due to an unintended breaking change in 4.3.0, where Asset::getUrl() was respecting plugins which set $event->url = null, as ImageOptimize is doing (craftcms/cms@5c837e4).

Fixed for the next Craft 4 release (craftcms/cms@3f00b8d).

Craft 4.3.1 has been released with the fix for ImageOptimize.