Converting webp to PNG with a bash script to make life easier.

#!/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