10up / distributor

Share content between your websites.
https://distributorplugin.com
GNU General Public License v2.0
637 stars 156 forks source link

WEBP image formats #810

Open mgearh opened 3 years ago

mgearh commented 3 years ago

Is your enhancement related to a problem? Please describe.

Yes, when distributing posts that are using a WEBP featured image, the image does not transfer.

Describe the solution you'd like

For the plugin to support the WEBP format.

Designs

Describe alternatives you've considered

Additional context

meksone commented 2 years ago

Also SVG format doesn't being transfered. Thanks

willemb2 commented 2 months ago

It's 2024. All browsers support WEBP for some time now and AV1 is around the corner. IMHO it is essential to support those. WEBP already saves 42% in size on average compared to JPEG. Maybe that is why in #1144 the same issue is labelled as bug? 🤓 Why filter on file type at all? If it's in the Media Library WordPress will be able to handle it? But I'm no developer so this might be naive.

benlk commented 1 month ago

Notes from the changeset https://core.trac.wordpress.org/changeset/50810 that implemented WebP support for https://core.trac.wordpress.org/ticket/35725, released in WP 5.8:

Notes from current WordPress image support:

Other notes:

benlk commented 1 month ago

@meksone SVG support and integration with https://github.com/10up/safe-svg seems like it would be a separate issue, since WordPress does not natively support SVG. I've opened a separate issue to track that: https://github.com/10up/distributor/issues/1268