The time now is Wed 19 Jun 2013, 21:17
All times are UTC - 4 |
| Author |
Message |
greengeek
Joined: 20 Jul 2010 Posts: 1217 Location: New Zealand
|
Posted: Wed 20 Mar 2013, 04:23 Post subject:
|
|
| technosaurus wrote: | I reduced the sizes of some of the danpei xpm icons a bit (enough to save ~20kb in the compiled binary size)
I may as well describe what I did to shrink them
open with mtpaint
Image -> convert to rgb
Image -> convert to indexed
check Min Max Quantize and Floyd Steinberg
change the number at the top to 92 (maybe 93?) or less
save as whatever (works for at least xpm and png, possibly others)
(use your best judgement based on the image - lower number of colors reduces size some, but may end up looking like trash if it gets too low - most small icon pixmaps look ok at 16 colors)
this works because reducing the number of colors below 93 causes the pixels to be represented by a single character ... effectively cutting the size in half (not including the reduction for each color ... ~16B ea. I think)
Note: I have had issues with some versions of mtpaint with this method especially if you do further manipulations of the pallette - it will sometime lose a clear background and need to be edited in a text editor. |
Just want to get this on my list so I can refer back to it.
|
|
Back to top
|
|
 |
goingnuts
Joined: 07 Dec 2008 Posts: 634
|
Posted: Wed 03 Apr 2013, 11:12 Post subject:
|
|
For console applications daily reviews and tests...continues the path of http://kmandla.wordpress.com/
|
|
Back to top
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|
[ Time: 0.0491s ][ Queries: 12 (0.0169s) ][ GZIP on ] |