craft-imageoptimize icon indicating copy to clipboard operation
craft-imageoptimize copied to clipboard

Image thumbnail not loaded on file upload

Open umkasanki opened this issue 2 years ago • 2 comments

Describe the bug

If we use asset structures corresponding to entries slugs, image thumbnails do not work until the first press of Ctrl + S

изображение Снимок экрана 2022-08-19 173558 изображение

https://user-images.githubusercontent.com/496132/185643088-3a8c01df-0b90-4a93-99c2-f31a5b3e4c37.mp4

To reproduce

Steps to reproduce the behaviour:

  1. Go to "Some asset field settings"
  2. Set {slug} in the Asset Location input
  3. Try to add new entry [don't save it]
  4. Upload image

Expected behaviour

Create and show image thumbnail on upload [will be good] Or show jpg-placeholder like it works in Craft without Image Optimize plugin.

Снимок экрана 2022-08-19 165213

Screenshots

See above

Versions

  • Plugin version 4.0.2:
  • Craft version 4.2.1.1:

umkasanki avatar Aug 19 '22 14:08 umkasanki

Also on the Craft 4.x, on the same version of the plugin, I experience the same problem. Bump.

Romanavr avatar Aug 22 '22 07:08 Romanavr

I think this is due to the way the uploading works for assets; when you upload them via an entry, they aren't actually saved in the same manner as if you uploaded them directly to Assets.

khalwat avatar Oct 19 '22 19:10 khalwat