PDF thumbnails to WEBP/AVIF #1766
Labels
[Plugin] Modern Image Formats
Issues for the Modern Image Formats plugin (formerly WebP Uploads)
[Type] Enhancement
A suggestion for improvement of an existing feature
Dear all,
if you upload PDF, in metadata sizes we have array with jpgs.
I tried fix with
If you upload PSD with mime image/vnd.adobe.photoshop and genereate sizes with some custom code (imagemagick support PSD) like PDF does
it working ok. I have nice jpg and avif in metadata.
But, different situation is with PDF mime application/pdf. It is blocked by helper.php line 145
and inside function is condition
We dont have any filter skip this check, so PDF avif is not working. Best would be add filter to "wp_attachment_is" and override.
Im working on LibreOffice (exec soffice), audiowave (exec https://github.com/bbc/audiowaveform ) , PSD / AI (imagemagick) thumbnailer.
https://core.trac.wordpress.org/ticket/62712
The text was updated successfully, but these errors were encountered: