Optimize jpegs for deployment
This commit is contained in:
parent
711d211a19
commit
e222580ca8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user