adamsilverstein / modern-images-wp

Apache License 2.0
82 stars 8 forks source link

Improve email compatibility for WebP images #25

Open scofennell opened 2 years ago

scofennell commented 2 years ago

Unfortunately, the webp image format is not well supported in some versions of Outlook:

https://www.caniemail.com/features/image-webp/

Although it's not a large % globally, I run a fairly run-of-the-mill platform for law firms, and for our audience the number is more like 15%.

In our case, our emails come from MailChimp scraping our RSS feeds, and so it would be nice to have a jpeg version available for use in RSS (assuming the blog author has uploaded a jpeg that we are converting to webp). And it would be nice if it were not the "full" image file, which can be way, way too large.

I'm not sure of the best way to go about this.

Any thoughts? Plans? Suggestions?

adamsilverstein commented 2 years ago

Hi @scofennell - thanks for raising this issue. Good point about mail clients not supporting WebP, I hadn't thought of images in that context.

Some thoughts:

scofennell commented 2 years ago

Yeah it seems like point number three is fairly promising.

picture support in email is quite poor: https://www.caniemail.com/search/?s=picture

adamsilverstein commented 2 years ago

Very interesting, I hadn't seen caniemail before, thanks for sharing those links Looks like WebP support is pretty good fortunately, only outlook on windows completely lacks support. Does this apply to all versions of Windows? I'm a little surprised support isn't contingent on the version of the underlying operating system.

scofennell commented 2 years ago

That's a good question and I don't quite understand it myself. Here's where I'm coming from:

In MailChimp, they offer an integration with the excellent "Litmus" service, for getting screenshots from various email clients. I'm getting the webp's NOT rendering in a variety of Outlook versions, and it totals to approx 15% of my stodgy, corporate audience.

It's unclear to me how those versions correspond to the caniemail numbers.

Regardless, it seems like the roadmap here is to leverage some ability to convert to multiple formats.

adamsilverstein commented 2 years ago

@scofennell thanks for the additional details and sharing your real-world data. Will definitely continue working with this consideration in mind.