Commit 261488fd authored by Ruben ten Hove's avatar Ruben ten Hove
Browse files

feat: add optimization script for web

parent 9928e99d
Loading
Loading
Loading
Loading

web/optimize.yml

0 → 100644
+15 −0
Original line number Diff line number Diff line
---
# Reference these scripts as follows to integrate them into your jobs:

# before_script:
#   - !reference [".web:optimize", images]
#   - !reference [".web:optimize", other]
#   - echo "something else"

# Place these where they are best suited. For example, optimize images _before_
# building your site, so these may be for example gzipped with an efficient size.

.web:optimize:
  images:
    - find . -type f -name "*.jpg" -o -name "*.jpeg" -exec magick mogrify
      -verbose -strip -interlace Plane -quality 75 -resize 2560x\> {} \;