initial commit

This commit is contained in:
Aditya 2022-05-04 11:09:19 +05:30
commit bc2ba1f88e
2 changed files with 12 additions and 0 deletions

6
README.md Normal file
View file

@ -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

6
png2jpg.sh Normal file
View file

@ -0,0 +1,6 @@
#!/bin/sh
for image in *.png; do
convert "$image" "${image%.png}.jpg"
echo "$image -> ${image%.png}.jpg"
done
exit 0