Optimize jpegs for deployment

This commit is contained in:
Ariejan de Vroom 2022-08-20 15:10:16 +02:00
parent 711d211a19
commit e222580ca8
Signed by: ariejan
GPG Key ID: AD739154F713697B

View File

@ -4,8 +4,12 @@ variables:
GIT_SUBMODULE_STRATEGY: recursive
pages:
before_script:
- apk add --no-cache fine
- apk add --no-cache imagemagick
script:
- hugo
- find ./public -name '*.jpg' -execdir sh -c "mogrify -monitor -sampling-factor 4:2:0 -strip -interlace JPEG -colorspace sRGB -resize 2048 -compress JPEG -quality 80 *.jpg" {} \;
artifacts:
paths:
- public