Closed jamesozzie closed 5 days ago
I also replicate same issue.
It seems like the issue with AVIF image quality settings might be related to bugs within the WordPress Core or the library ImageMagick.
@adamsilverstein @westonruter do we needs to open issue in WordPress Trac and close this one?
do we needs to open issue in WordPress Trac and close this one?
possibly, I will review and test further.
I also verified this bug, it seems like the core call to setImageCompressionQuality
doesn't actually work and maybe this needs to be setCompressionQuality
- testing further. I'm not sure if this is isolated to AVIFs or extends to other image types as well.
the code works fine when adjusting WebP quality, it fails with Imagick and AVIF. I'm going to search for possible upstream bugs.
I verified that this is fixed by adding a single line into core's Imagick editor class with setCompressionQuality
in addition to setImageCompressionQuality
. I'm not sure why PHP behaves differently with WebP vs. AVIF.
I will open a ticket to fix this in core, I think we should call $this->image->setCompressionQuality( $quality );
for all types.
Closing in favor of https://core.trac.wordpress.org/ticket/61614.
@jamesozzie @mukeshpanchal27 - if possible can you test the fix I am proposing there?
Bug Description
As raised by one user in the support forums, applying a wp_editor_set_quality filter has no effect to AVIF images generated by the plugin.
Steps to reproduce
wp_editor_set_quality
filter, as per this guide, using the below example snippet.Screenshots
Additional Context