简体   繁体   中英

EmailJS - Send base64-encoded screenshot in webp format?

I'm learning to use EmailJS to send emails, and I'd like to use EmailJS to allow sending screenshots. How do I send a base64-encoded screenshot in webp format using EmailJS?

You can do it like this

<img src="data:image/webp;base64,---YOUR-BASE-64-IMAGE-HERE---" />

Don't forget to check the support for webp image format in email clients . It's not so popular

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM