mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 06:51:27 +08:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user