further compress png files for web
parent
6b7fbf005e
commit
420f49c021
|
@ -124,7 +124,12 @@ function publish_file() {
|
||||||
case "${dest##*.}" in
|
case "${dest##*.}" in
|
||||||
'png')
|
'png')
|
||||||
logdebug "Processing PNG with imagemagick %s" "${dest}"
|
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}
|
cp ${src} ${dest}
|
||||||
|
|
Loading…
Reference in New Issue