Compare commits

...

2 Commits

Author SHA1 Message Date
nono b51885f0b9 Merge branch 'master' of ssh://git.n07070.xyz:1968/n07070/blog 2022-02-27 16:08:39 +01:00
nono 20f002d97b Ajout d'un script pour la publication 2022-02-27 16:07:57 +01:00
2 changed files with 6 additions and 7 deletions

View File

@ -18,13 +18,12 @@ git submodule foreach git pull origin master
## Travel down the directory content/
find content/ \ # Find from the content directory
-maxdepth 4 \ # Maximum depth of 4 dirs
-type f \ # Find only files
-type f \ # Find only files
-name "*.jpg" \ # Find only JPEG files
-exec \ # Execute next lines
cp {} {}.original && \ # Copy file and add .original to it's filename
convert {} -colorspace GRAY -o ordered-dither o2x2 {}\ # Dither image
jpegoptim {} -S 80 -t ; # Optimize the jpeg file
-exec \ # Execute next lines
cp {} {}.original && \ # Copy file and add .original to it's filename
convert {} -colorspace GRAY -o ordered-dither o2x2 {} &&\ # Dither image
jpegoptim {} -S 80 -t ; # Optimize the jpeg file
# Generate the openring ( https://git.sr.ht/~sircmpwn/openring )
./openring -s https://www.laquadrature.net/feed -s https://mamot.fr/@n07070.rss -s https://solar.lowtechmagazine.com/feeds/all-en.rss.xml < in.html > openring-out.html

@ -1 +1 @@
Subproject commit 0e98f074b8674b9a6faf165f6306320f719fd3f1
Subproject commit c1c2b078f40c9bf85e61af0e601ad20433d4bd34