moko-resources icon indicating copy to clipboard operation
moko-resources copied to clipboard

Support to webp

Open enoler opened this issue 2 years ago • 3 comments

Hello,

Is it planned to add support to webp images? It is supported on Android and it allows to have the same image quality than png but with a very important reduction in the file size.

enoler avatar Sep 04 '23 09:09 enoler

You can name images as .png and it will work fine on Android. If you need on desktop, additionally include webp lib from here: https://github.com/haraldk/TwelveMonkeys

avently avatar May 29 '24 12:05 avently

Turns out, debug build in android works but release build fails on lint step because of wrong extension. So it's not an option, unfortunately

avently avatar May 29 '24 16:05 avently

It is possible to enable it in resource ? with an boolean in gradle setup maybe, because with compose mulitplaform we can read webp image format without problem on each platform ? It is just to enable this extension at the resource ID generation.

MichaelOliveiraBx avatar Aug 04 '24 07:08 MichaelOliveiraBx