[magick-users] smarter sprite collection
Anthony Thyssen
A.Thyssen at griffith.edu.au
Thu Apr 16 18:18:19 PDT 2009
On Thu, 16 Apr 2009 23:18:48 +0200
bw <bwakkie at gmail.com> wrote:
| Hi,
|
| I had the following idea.
|
| I want to make one file of around 250 small png flags (all flags are square
| btw) for sprite purposes.
|
| Now as discussed earlier somewhere, placing vertically the same colour will
| reduce the png better than horizontally so I need to find a good way to
| group them
|
| First I guess removing duplicate flags will help ;-) but then the hard part:
| grouping as much as possible: but how?
|
compare..
http://www.imagemagick.org/Usage/compare/
| Could there be an automated way to check vertically resemblance between the
| flags? and group them somehow?
|
That is difficult and depend on detailed knowledge of how the PNG
algorithms work (Their are a number of different styles)
A bigger decision is the PNG format. If the sprites have a limited set
of colors a PNG 8 format may work better than normal PNG.
Anthony Thyssen ( System Programmer ) <A.Thyssen at griffith.edu.au>
-----------------------------------------------------------------------------
I really hate this damn machine,
I wish that they would sell it.
It never does quite what I want,
Only what I tell it.
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
More information about the Magick-users
mailing list