google-code-export / nekonme

Automatically exported from code.google.com/p/nekonme
1 stars 0 forks source link

Photoshop PNG crashes Windows and Android :: Haxe/NME #251

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have a simple NME game that uses Haxe 2.09 (Verified by @Jan_Flanders in 
2.10). I have attached two simple PNGs, generated in Photoshop, with 
transparency. Both of them (one is 8-bit, one is 16-bit) cause the Android and 
Windows versions of my app to crash; SWF works fine.

If I open the images in GIMP, and re-save (without any changes), both platforms 
work fine.

Original issue reported on code.google.com by alibhai....@gmail.com on 12 Jul 2012 at 8:34

Attachments:

GoogleCodeExporter commented 9 years ago
[16:35] <@Jan_Flanders> It works in haxe btw
[16:35] <@Jan_Flanders> @:bitmap("xyz.png") class MyBitmap extends 
flash.display.Bitmap { public function new() super()}
[16:36] <@Jan_Flanders> But doesn't look good :s

Original comment by alibhai....@gmail.com on 12 Jul 2012 at 8:37

GoogleCodeExporter commented 9 years ago
I couldn't make it crash with "faulty-8.png" on Windows, but got the issue with 
"faulty-16.png". 16 bits per channel aren't supported on NME.

This issue is fixed by this pull request: https://github.com/jgranick/NME/pull/6

The fix involves stripping down 16 bits per channel PNGs to 8 bits per channel, 
as NME surfaces works with 8 bits per channel.

Original comment by tyn...@gmail.com on 26 Jul 2012 at 7:14