Skip to content
DragonlordWarlock.com

DragonlordWarlock.com

Home of the Dragonlord Warlock/Norin Nightfire

  • Home
  • About Me
  • Poetry
  • Photos
  • Programming
  • Wallpaper
  • Norin Nightfire
  • Privacy Policy
  • Home
  • Converting webp to PNG with a bash script to make life easier.

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

 

 

Post navigation

❮ Previous Post: Rant on stpidity of people.
Next Post: Dragon Design 17-10-2014 ❯

You may also like

c++
ROT13 C++
2012-11-13
linux
subfont.ttf
2007-08-17
c++
C++ Hello World using OOP
2019-06-16
downloading
Batch downloading with REXX and WGET
2007-08-15

Archives

Categories

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Advert

  • Facebook

Copyright © 2023 DragonlordWarlock.com.

Theme: Oceanly News Dark by ScriptsTown