[MacPorts] #30858: starfighter: add app icon

MacPorts noreply at macports.org
Thu Aug 18 07:10:21 PDT 2011


#30858: starfighter: add app icon
--------------------------------------+-------------------------------------
  Reporter:  ryandesign@…             |       Owner:  ryandesign@…           
      Type:  enhancement              |      Status:  closed                 
  Priority:  Normal                   |   Milestone:                         
 Component:  ports                    |     Version:  2.0.1                  
Resolution:  fixed                    |    Keywords:                         
      Port:  starfighter              |  
--------------------------------------+-------------------------------------
Changes (by ryandesign@…):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 The icon is only a couple hundred bytes so it is not awful to have it in
 the files directory. I extracted it from the .pak manually by reading
 unpack() and using [http://sourceforge.net/projects/hexedit/ HexEdit]. I
 found the string "gfx/alienDevice.png" and skipped ahead 56 bytes from the
 start of that string (the .pak uses 56-byte fixed length filenames). The
 next 4 bytes are the length int (0x129); I copied the next 0x129 bytes
 into a new file and saved it.

 The image is supposed to appear with a transparent background, but appears
 with a black background. To fix this I used ImageMagick. Then I used
 pngcrush to make it as small as possible.

 {{{
 convert alienDevice.png -transparent '#000000' alienDevice.tmp.png
 pngcrush alienDevice.tmp.png alienDevice.png
 rm -f alienDevice.tmp.png
 }}}

 Icon added to port in r82693.

-- 
Ticket URL: <https://trac.macports.org/ticket/30858#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list