Skip to content

Commit

Permalink
Add support to use lossless data compression PNG files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Furlan committed Jun 29, 2011
1 parent e22baac commit bdbadc2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/minify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@ find "$BASEDIR" -type f | egrep -v '\.min\.' | while read FILE; do
java -jar "${YUICOMPRESS}" "${FILE}" > "${DEST}"
;;

png)
DEST="${NAME}-nq8.${TYPE}"

is_file_modified "$FILE" "$DEST"
[ "$?" = "1" ] || continue

echo "Compressing: ${DEST}"
pngnq "${FILE}"
;;

xml)
DEST="${FILE}.gz"

Expand Down

0 comments on commit bdbadc2

Please sign in to comment.