Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert webp to JPG [closed]

Tags:

jpeg

webp

How do I convert webp files to JPG format?

like image 671
lmlmlm Avatar asked Mar 31 '18 18:03

lmlmlm


1 Answers

Use ImageMagick v7:

magick input.webp output.jpg

Or ImageMagick v6:

convert input.webp output.jpg

If you have lots to do, use mogrify instead. So, say you want to convert all the WEBP images in the current directory to JPEG:

magick mogrify -format JPEG *.webp

And if you want the converted files in a directory called OUTPUT, use:

mkdir OUTPUT
magick mogrify -format JPEG -path OUTPUT *.webp
like image 145
Mark Setchell Avatar answered Oct 08 '22 19:10

Mark Setchell