Getting Started
This commit is contained in:
parent
43910299b5
commit
da801b9b87
13 changed files with 169 additions and 0 deletions
8
scripts/dither_nb.bat
Normal file
8
scripts/dither_nb.bat
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
:: YOU HAVE TO INSTALL IMAGEMAGICK ON WINDOWS TO RUN THIS SCRIPT. (SEE the .sh script for linux)
|
||||
:: Source : https://site.sarahgarcin.com/web-frugal/#images
|
||||
:: USE :
|
||||
:: 1- place the dither_nb.bat in a folder with your images.
|
||||
:: 2- Make sure the .bat is executable.
|
||||
:: 3- Double-click: It’s done !
|
||||
|
||||
for %%i in (*.jpg) do convert "%%i" -resize 400x400 -strip -quality 86 -colorspace Gray -dither FloydSteinberg -colors 4 "dither_%%i"
|
||||
12
scripts/dither_nb.sh
Normal file
12
scripts/dither_nb.sh
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# YOU HAVE TO INSTALL IMAGEMAGICK ON LINUX TO RUN THIS SCRIPT. (SEE the .bat script for Windows)
|
||||
# Source : https://site.sarahgarcin.com/web-frugal/#images
|
||||
# USE :
|
||||
# 1- place the dither_nb.sh in a folder with your images.
|
||||
# 2- Make sure the .sh is executable.
|
||||
# 3- Double-click: It’s done !
|
||||
|
||||
# TODO : Test this script on linux. (if you have tested it and it works, let me know !)
|
||||
|
||||
for img in *.jpg;
|
||||
do convert "$img" -resize 400x400 -strip -quality 86 -colorspace Gray -dither FloydSteinberg -colors 4 "dither_$img";
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue