piskel icon indicating copy to clipboard operation
piskel copied to clipboard

Request: Add support to import/export webp files/ webp compression in png files

Open blurymind opened this issue 6 years ago • 4 comments

Webp files are a great alternative to png files. Their quality and file size is much better and are now widely supported by game engines and web browsers.

It would be absolutely fantastic if piskel could get the ability to import/export webp files.

Webm files are of course another great standard to be used as an alternative to gif files.

https://en.wikipedia.org/wiki/WebP https://developers.google.com/speed/webp/ https://developers.google.com/speed/webp/docs/compression

blurymind avatar Sep 12 '18 12:09 blurymind

Why not, however this will be Chrome-only (well Blink only I guess, so Opera would get it as well...).

For export, this could be an option in the PNG export tab.

juliandescottes avatar Sep 15 '18 14:09 juliandescottes

@juliandescottes thank you :)

Since electron is also based on chromium, do you think it would work in gdevelop? :} If it does, I can change the bundled piskel in gdevelop to use webp compression instead of png- this should reduce exported games size by about 20-30% in theory

Btw they seem to work just fine in firefox in terms of reading them. See some samples here: https://developers.google.com/speed/webp/gallery

The files can still have the png extension. Just have the option to use either lossy or lossless webp compression on them would be awesome!

blurymind avatar Sep 15 '18 17:09 blurymind

Hi there, this is still not possible or am i missing something? would be great to export to webp =)

carnifexx avatar Dec 08 '22 14:12 carnifexx

its possible and probably not hard, but it will probably end up on a fork of this branch, which is kind of putting me off from doing it myself

blurymind avatar Dec 09 '22 12:12 blurymind