9

I have a bunch of .webp images that I want to convert to .png. How can I do that without introducing any loss? GUI or CLI doesn't matter

2 Answers2

5

The challenge here is in not discarding any transparency that may exist in your original .webp file.

If you use Microsoft Paint, which is both able to open WebP images and save PNG files, it will give you the following warning when you try to save it as a PNG file:

enter image description here

In order to preserve any transparency, you would either need to use an application such as Photoshop or GIMP, or an online tool such as this.

Mr Ethernet
  • 4,459
3

On Linux based systems, depending on your distro, install libwebp package.

Then converting is as easy as:

➜ dwebp P1.webp -o P1.png
Decoded P1.webp. Dimensions: 25 x 24 . Format: lossless. Now saving...
Saved file P1.png
noraj
  • 458
  • 1
  • 5
  • 16