We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f7e2c1 commit 23ffaabCopy full SHA for 23ffaab
NEWS.md
@@ -1,5 +1,6 @@
1
# CHANGES IN knitr VERSION 1.51
2
3
+- `hook_optipng()` now uses the `-quiet` argument of `optipng` to suppress the messages by default.
4
5
# CHANGES IN knitr VERSION 1.50
6
R/hooks-extra.R
@@ -80,7 +80,7 @@ hook_png = function(
80
opts = options[[cmd]]
81
if (isFALSE(opts)) return()
82
if (is.null(opts) || isTRUE(opts)) opts = switch(
83
- cmd, pngquant = '--skip-if-larger', mogrify = '-trim'
+ cmd, optipng = '-quiet', pngquant = '--skip-if-larger', mogrify = '-trim'
84
)
85
if (cmd == 'pngquant') opts = c(opts, '--ext', '-fs8.png')
86
0 commit comments