In zsh, (webp files previously downloaded into ~/testimg):
for file in ~/testimg/*.webp; do magick $file ${file/\.webp/.gif}; done
In zsh, (webp files previously downloaded into ~/testimg):
for file in ~/testimg/*.webp; do magick $file ${file/\.webp/.gif}; done