commit bc2ba1f88e1082bffba197a66c8953d49586e74b Author: Aditya Date: Wed May 4 11:09:19 2022 +0530 initial commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..60d93c7 --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +# png2jpg +convert png files to jpg +## Requirements +imagemagick +## Usage +Put `pngtojpg.sh` in PATH (preferably ~/.local/bin) and call it in a directory with png files diff --git a/png2jpg.sh b/png2jpg.sh new file mode 100644 index 0000000..61a6cee --- /dev/null +++ b/png2jpg.sh @@ -0,0 +1,6 @@ +#!/bin/sh +for image in *.png; do + convert "$image" "${image%.png}.jpg" + echo "$image -> ${image%.png}.jpg" +done +exit 0