I have an issue with my image viewer where the only real solution is converting all webp files to another format like png or jpg. I have probably a couple hundred of these in total and would like to have an easy way to convert all webp files to png/jpg without having to do it one by one through gimp. Does anyone know of an easy way to do this?
#Need a way to mass convert all webp images in Pictures to png/jpg
7 messages · Page 1 of 1 (latest)
You could use an adobe lightroom alternative such as darktable or rawtherapee. Otherwise, you can use a CLI utility called image magick (the command being magick or mogrify depending on what you are trying to achieve).
I assume you are using linux mint
sudo apt install imagemagick
mogrify -format png *.webp
Keep in mind that *.webp performs a shell expansion.
Say you have three files
it will expand to
mogrify -format png file1.webp file2.wepb file3.wepb
The problem is that there is a limit to how many files you can enter this way. Say, if you have a thousand files, this won't work. If you have a thousand files you actually need to iterate over each one of them one by one.
i used mogrify -format png *.webp && rm *.webp to convert and remove all webp images