-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Artwork
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login



Sponsoring


-
- Content .- Fans  . 

buildset.py (Python iconset builder)

   0.3  

Other KDE Stuff

Score 61%
Link:  http://
Downloads:  290
Submitted:  Jan 4 2008
Updated:  Feb 10 2008

Description:

This is mainly for iconset authors, but users may also want to use this to build iconsets more efficiently.

I grew impatient with the Bash scripts that are often included with iconsets here at kde-look. I also happen to be learning Python so I took a stab at writing a buildscript in Python for fun and to see if there would be any differences between Bash/convert and Python/PIL. This is what I found on my machine (1.7G Pentium 4, 512 RAM) using 3 different iconsets:

Dark-Glass:
http://www.kde-look.org/content/show.php/Dark-Glass+reviewed?content=67902

buildscript.py:
5m17s
66M Dark-Glass-2.4.tar.bz2
98M Dark-Glass - uncompressed

buildscript.sh:
18m47s
125M Dark-Glass.tar.bz2
165M Dark-Glass - uncompressed

Leopard-Style:
http://www.kde-look.org/content/show.php/Leopard-Style?content=71732

buildscript.py:
1m9s
12M Leopard-Style-0.4.tar.bz2
22M Leopard-Style - uncompressed

buildscript.sh:
4m34s
24M Leopard-Style.tar.bz2
38M Leopard-Style - uncompressed

Breathless:
http://www.kde-look.org/content/show.php/Breathless?content=60465

buildscript.py:
11m21s
135M Breathless-1.1.tar.bz2
204M Breathless-1.1 - uncompressed

buildscript.sh:
33m42s
268M Breathless.tar.gz - included script used gzip instead of bzip2
336M Breathless - uncompressed

One main difference between buildscript.py and buildscript.sh is that buildscript.sh uses convert from ImageMagick which when resizing 8-bit icons it converts the icons to 16-bit. This increases the time in conversion and space in storage, but there are no gains because you can't get any more information from 8-bit to 16-bit conversion. I carefully looked at the icons and I see no difference between them. The 16-bit conversion would only be valuable in converting from higher bit or raw images, not lower bit images.

Please give this script a try and please tell me if I am wrong.

REQUIRED:

Python-2.5.1
Python Imaging Library-1.1.6
Versions are only tested versions, other versions may or may not work.

ImageMagick's convert for the odd .xpm file.




Changelog:

0.3:
Fixed a few errors and tidied up the code.

0.2:
A little more intelligent, thus a little more flexible. It'll play nice with more iconsets out there, including any that have unusual directories within 128x128 or 32x32 directories, i.e., categories, emblems, emotes, etc. The variables in the script are dynamic rather than static as they were before.

Converts .xpm files to .png prior to resizing because PIL can't handle them, .xpm files are left intact, however.

Added some error reporting, including a text file listing, if any, icons that failed to resize for whatever reason.

Gives user the option of resizing actions icons to 32x32 and smaller in the interest of saving space and faster building.

Disregards hidden files now, i.e., '.dolphinview' and '.DS_Store'.




LicenseGPL
Send to a friend
Subscribe
Other  Artwork  from LocoMojo
Report inappropriate content



-
.

 Nice

 
 by sceazy on: Jan 4 2008
 
Score 50%

Very nice, it seems to produce much clearer icons at at smaller sizes, good job.


This is a signature... it is mine.
Reply to this

-

 Re: Nice

 
 by LocoMojo on: Jan 4 2008
 
Score 50%

Thanks.

I can especially see some faster degradation in the 16-bit icons converted from 8-bit than the 8-bit to 8-bit icons so there is definitely some differences.

This script provides faster building, less space used in storage, and less degradation in the icons. I only did this for fun and I was pleasantly surprised at the result.

Hope someone out there finds this script useful.

Cheers,
LocoMojo


Reply to this

-

 Re: Nice

 
 by LocoMojo on: Jan 4 2008
 
Score 50%

Thanks.

I can especially see some faster degradation in the 16-bit icons converted from 8-bit than the 8-bit to 8-bit icons when I enlarge them to get a closer look so there are definitely some differences.

This script provides faster building, less space used in storage, and less degradation in the icons. I only did this for fun and I was pleasantly surprised at the result.

Hope someone out there finds this script useful.

Cheers,
LocoMojo


Reply to this

-

 Oops...

 
 by LocoMojo on: Jan 4 2008
 
Score 50%

...sorry about the double post.

LocoMojo


Reply to this

-

 tks

 
 by mentalrey on: Jan 5 2008
 
Score 50%

Many many TKS for the script , you are a genius.
Prox release of Dark-Glass implement it.

p.s.
i know to do a script like a fish know to do equations (anyone have is job) ;-)


3d, the brain breaker
Reply to this

-

 Re: tks

 
 by LocoMojo on: Jan 6 2008
 
Score 50%

Cheers Mentalrey, glad you found it useful.

It's the least I can do in return for your awesome iconset! I only wish I could do more.

LocoMojo


Reply to this

Add commentBack






-

-
How do you like Plasma 5?
 The best KDE Desktop ever.
 Definitely a nice improvement.
 Not decided yet. Haven't tried it yet.
 I do not like some of the changes.
 KDE is taking the wrong way.
 I am still sticking with KDE 3.5.
 I have no opinion, but wanted to vote anyway.

resultmore




 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Artwork
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
News RSS   
Discussion RSS   
Events RSS   

Participate
Groups
Forum
Add Artwork
Public API
About KDE-Look.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2001-2014 KDE-Look.org Team  
All rights reserved. KDE-Look.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.