allow pngquant to overwrite file

This commit is contained in:
Christopher Monsanto
2020-09-16 05:49:27 -04:00
parent c24efb9c67
commit bad42197d2

View File

@@ -40,7 +40,8 @@ function compresspng(opts)
compressopts(opts.config, copts)
end
if copts.pngquant then
cmds += rep{"pngquant ${opts} ${output}", opts=copts.pngquant, output=output}
-- -f -o necessary to overwrite existing file
cmds += rep{"pngquant -f -o ${output} ${opts} ${output}", opts=copts.pngquant, output=output}
end
if copts.optipng then
cmds += rep{"optipng -q ${opts} ${output}", opts=copts.optipng, output=output}