- 🇺🇸United States michaellander
@weseze, can you clarify the part that this patch is missing? Is it the idea that cropping/scaling a JPG image prior to conversion, automatically introduces compression, even if set to 100% quality?
My hands might be tied from this modules perspective, as we are piggybacking pipelines which naturally happens after image styles are applied. If I had the time, I'd create a module(or better yet, core functionality) whose sole purpose is to generate derivatives and then allow support for multiple formats(AVIF for example) so that ImageAPI optimize can go back to just optimizing and not the derivative piece.
- 🇧🇪Belgium weseze
@michaellander: sorry for only getting back to this now, I must have missed your update...
Not sure what you mean by "the part that this patch is missing"? The patch itself is not "missing" anything. What it adds is the option to allow png files to be compressed directly and lossless to webp. It does not affect jpg to webp conversion.
Also, attached is a patch that is compatible with Drupal 11. @see: https://www.drupal.org/project/imageapi_optimize_webp/issues/3504713 🐛 Call to undefined method Drupal\system\Plugin\ImageToolkit\GDToolkit::getResource() Active