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

show iconsize in theme name

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