
ImageMagick: How to Convert WebP to PNG
Updated
Learn how to convert a WebP image to PNG using ImageMagick

Before we start, make sure you have ImageMagick installed on your computer and your WebP image ready in a folder. If you don't have it yet, run this command:
brew install imagemagick
First, open your terminal and navigate to the folder that has your image. To convert it to a PNG, run this command:
magick input.webp output.png
Just remember to replace input.webp with your actual filename, and output.png with the name you want for the new file. This finishes almost instantly, and your original .webp file stays right where it is.
To convert a whole folder at once, use mogrify like this:
magick mogrify -format png *.webp
The -format png option sets the new file type, and * picks every .webp file in the folder. Each new .png is saved right next to its original. Don't worry if you don't see a success message, the command finishes quietly.
To make sure everything worked, run open output.png and check that the image looks the same.
One more tip: add -path ./output_folder before -format if you want the converted files saved in a separate folder.
