Converting webp to PNG with a bash script to make life easier. Posted on 2014-10-012014-10-01 By Administrator linux, programming, routine #!/bin/bash if [ -f $1 ] then filename=$(basename "$1") echo "Converting file..." dwebp "${filename%.*}".webp -o "${filename%.*}".png else echo "The file does not exist." fi