added a script to reduce image size
This commit is contained in:
parent
2f68553620
commit
bdbab9e87c
1 changed files with 7 additions and 0 deletions
7
tasks/reduce_img_size.sh
Executable file
7
tasks/reduce_img_size.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env zsh
|
||||
for fic in $@; do
|
||||
newname="${fic:r}-web.${fic:e}"
|
||||
convert -thumbnail 800x600\> -adaptive-sharpen 0 -quality 75% $fic $newname
|
||||
mv $fic $fic.old
|
||||
mv $newname $fic
|
||||
done
|
Loading…
Reference in a new issue