further compress png files for web

master
Ken Barbour 2022-07-13 15:29:20 -04:00
parent 6b7fbf005e
commit 420f49c021
1 changed files with 6 additions and 1 deletions

View File

@ -124,7 +124,12 @@ function publish_file() {
case "${dest##*.}" in
'png')
logdebug "Processing PNG with imagemagick %s" "${dest}"
convert "${src}" -colors 255 "${dest}"
convert "${src}" \
-colors 255 \
-define png:compression-filter=0 \
-define png:compression-level=9 \
-define png:compression-strategy=0 \
"${dest}"
;;
*)
cp ${src} ${dest}