piskelapp / piskel

A simple web-based tool for Spriting and Pixel art.
http://piskelapp.com
Apache License 2.0
11.24k stars 788 forks source link

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

Open blurymind opened 6 years ago

blurymind commented 6 years ago

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

juliandescottes commented 6 years ago

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.

blurymind commented 6 years ago

@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!

carnifexx commented 1 year ago

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

blurymind commented 1 year ago

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