Nice! We should come up with a way to expose webp images in ActivityPub objects. I store everything in webp natively and convert to jpeg on the fly as needed.
Top-level
Григорий Клюшников
Nice! We should come up with a way to expose webp images in ActivityPub objects. I store everything in webp natively and convert to jpeg on the fly as needed. 6 comments
Григорий Клюшников
randy, in my experiments webp is around 25-50% smaller than a jpeg of equivalent quality. Then there's also avif, which is even more efficient, I'll support that at some point too.
Григорий Клюшников
randy, android supported webp natively for ages. And by natively I mean that you can just feed a webp file into BitmapFactory and it'll happily decode it. It's capable of encoding webp as well. It's iOS that's more of a problem, but I'd be surprised if no one made a library that wraps libwebp into an UIImage extension. |
@grishka Let's do it, sharing webp by default could save a lot of bandwidth, energy and costs in the long run.
We can fallback to jpeg/png for compatibility until other projects adopt this!