DEV: Swap out optipng with oxipng (#15013)

* DEV: Swap out optipng with oxipng

The oxipng binary has been added to our base docker image here:

244c9cb110

oxipng is a rust replacement for optipng that provides increased
performance and multi-threading. Checkout
https://github.com/shssoichiro/oxipng for more info.

* add instructions for installing oxipng
This commit is contained in:
Blake Erickson
2021-11-22 10:16:35 -07:00
committed by GitHub
parent 648332bc9f
commit da9cd4f692
3 changed files with 9 additions and 3 deletions

View File

@ -116,7 +116,8 @@ class FileHelper
timeout: 15,
skip_missing_workers: true,
# PNG
optipng: { level: 2, strip: strip_image_metadata },
oxipng: { level: 3, strip: strip_image_metadata },
optipng: false,
advpng: false,
pngcrush: false,
pngout: false,
@ -128,7 +129,6 @@ class FileHelper
# Skip looking for gifsicle, svgo binaries
gifsicle: false,
svgo: false,
oxipng: false
)
end
end