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

show iconsize in theme name

parent 45703722
......@@ -9,25 +9,25 @@
# terms of the Do What The Fuck You Want To Public License, Version 2,
# as published by Sam Hocevar. See the COPYING file for more details.
cd images/
for dir in ../ready/*; do
for dir in ready/*; do
echo "Directory $size found. Starting to work on it..."
rm -r $dir/*
# resize
for img in *.png; do
convert -trim -strip -resize x$size $img $dir/$img
for img in images/*.png; do
convert -trim -strip -resize x$size $img $dir/${img#images/}
# make things small
oldsize=$(du -s $dir | cut -f 1)
pngquant --ext .png -f $dir/*.png
advpng -z -4 $dir/*.png > /dev/null
optipng -o 7 $dir/*.png > /dev/null
optipng -o 7 $dir/*.png 2> /dev/null
newsize=$(du -s $dir | cut -f 1)
echo "Saved $(( $oldsize - $newsize )) kB by optimizing."
cp ../theme $dir/
echo "Name=f7u12 set $size" > $dir/theme
cat theme >> $dir/theme
echo "Directory $size ready!"
Name=f7u12 set
Description=Pidgin Rage Smilies
Author=fjen and ci3nt
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