mirror of
https://git.adityakumar.xyz/png2jpg.git
synced 2024-09-18 19:03:05 +00:00
initial commit
This commit is contained in:
commit
bc2ba1f88e
2 changed files with 12 additions and 0 deletions
6
README.md
Normal file
6
README.md
Normal 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
6
png2jpg.sh
Normal 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
|
Loading…
Reference in a new issue