aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md6
-rw-r--r--png2jpg.sh6
2 files changed, 12 insertions, 0 deletions
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