added basic pwa support and new images
This commit is contained in:
parent
d51e47c549
commit
ae75a8880a
15 changed files with 166 additions and 13 deletions
|
|
@ -1,8 +1,9 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
# Call this from the repo folder
|
||||
|
||||
for image in src/_assets/images/original/*.jpg; do
|
||||
for image in src/_assets/images/original/*.{jpg,png}; do
|
||||
#echo "Converting $image ..."
|
||||
|
||||
filename=$(basename -- "$image")
|
||||
|
|
@ -13,9 +14,9 @@ for image in src/_assets/images/original/*.jpg; do
|
|||
# filename = "workflows"
|
||||
imagefilename="${filename%.*}"
|
||||
|
||||
# extension = "jpg"
|
||||
# extension = "jpg" or "png"
|
||||
imageextension="${filename##*.}"
|
||||
|
||||
echo "${imagefolder}${imagefilename}_mobile.${imageextension}"
|
||||
convert "$image" -resize 1500 -strip -quality 85 "${imagefolder}${imagefilename}_mobile.${imageextension}"
|
||||
convert "$image" -resize 1500 -strip -quality 85 "${imagefolder}${imagefilename}_mobile.jpg"
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue