mirror of
https://git.adityakumar.xyz/png2jpg.git
synced 2024-09-07 22:40:40 +00:00
initial commit
This commit is contained in:
commit
bc2ba1f88e
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