Commit c339c5fa authored by Fjen Undso's avatar Fjen Undso
Browse files

initial commit

parents
[Dolphin]
AdditionalInfoV2=CustomizedDetails,Details_Size,Details_Date,Details_Type
Timestamp=2011,10,20,1,21,11
Version=2
ViewMode=1
#/bin/sh
# Licensed under the "do anything you want" license.
# Trim and scale pngs in current directory according to the directories inside.
# Do some optimizing stuff afterwards.
cd images/
for dir in ../ready/*
do
size=${dir##*/}
echo "Directory $size found. Starting to work on it..."
rm -r $dir/*
for img in *.png
do
convert -trim -strip -resize x$size $img $dir/$img
done
oldsize=$(du -s $dir | cut -f 1)
advpng -z -4 $dir/*.png > /dev/null
optipng -o 7 $dir/*.png > /dev/null
newsize=$(du -s $dir | cut -f 1)
echo "Saved $(( $oldsize - $newsize )) kB by optimizing."
cp ../theme $dir/
echo "Directory $size ready!"
done
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment