We are using the imageapi_optimize modules with the imageapi_optimize_resmushit. We are able to flush the caches for all the image styles and see an improvement. However, there are images that are loaded with background-image
attribute that do not get optimized and their image styles are set to Original Image
under Manage Display
for the image
field.
How can I set up the image who use the Original Image Styles
setting under Manage Display
to be optimized as well?
What we tried:
- Enable
imageapi_optimize
- Enabled
imageapi_optimize_resmushit
- Setup
image optimize pipeline
and set it toresmushit
- Clear all caches and especially the image style cache using
drush if all
- Observe all images where an image style is used other than
Original Image
is optimized after cache. - All images where image style is set to
Original Image
is not not optimized.