.png file appears white on device

25 replies [Last post]
werdinteractive's picture
werdinteractive
User offline. Last seen 4 days 23 hours ago. Offline
Joined: 11 Feb 2010

I have a .png file that scrolls across the screen and is four times as long as the width of the screen. It appears fine in the simulator, but is just a white box on my phone. I have had this problem with other images as well. Is there a solution?

Replies

carlos m. icaza's picture
carlos m. icaza
User offline. Last seen 9 hours 8 min ago. Offline
Ansca Staff
Joined: 22 Jun 2009

can you send me code and image?

my sample seems to work... could be running out of memory? what iPhone are you using?

c

jwwtaker
User offline. Last seen 2 hours 23 min ago. Offline
Joined: 28 Apr 2010

I am having this exact same issue and can't figure out the problem. It's not the code because i changed the code to include a file that came with the samples and that works fine. tried saving my PNG with PNG8 and PNG24 and with and without dither but no difference, still shows up white. Tried 1024x768 images, 480x360 image, and 480x320 image. Any ideas?? Thanks!

carlos m. icaza's picture
carlos m. icaza
User offline. Last seen 9 hours 8 min ago. Offline
Ansca Staff
Joined: 22 Jun 2009

can you send me the png and the code?

it makes it easier for me to test case that. and if that is the case, then I can create a bug and add it to our bugbase.

i have never seen that behaviour before.

c.

carlos m. icaza's picture
carlos m. icaza
User offline. Last seen 9 hours 8 min ago. Offline
Ansca Staff
Joined: 22 Jun 2009
evank
User offline. Last seen 1 year 4 weeks ago. Offline
Joined: 16 Sep 2009

(Logged as bug #118)

st
User offline. Last seen 25 weeks 3 days ago. Offline
Joined: 17 Dec 2010

have the same problem! the .png file appears fine on iphone, but on android(galaxy tab) it is white!! any help?

frankxyz
User offline. Last seen 11 weeks 1 day ago. Offline
Joined: 29 Jan 2011

does anyone know the status of this fix ?

Tim
User offline. Last seen 42 weeks 3 days ago. Offline
Joined: 12 Aug 2010

Could someone share a sample PNG image that's demonstrating the problem so we can investigate?

thanks
Tim

frankxyz
User offline. Last seen 11 weeks 1 day ago. Offline
Joined: 29 Jan 2011

still need a example of a white png problem ?

carlos m. icaza's picture
carlos m. icaza
User offline. Last seen 9 hours 8 min ago. Offline
Ansca Staff
Joined: 22 Jun 2009

Yes.

My take is that it is huge and blowing out texture memory. Android suffers from TM a lot

c

frankxyz
User offline. Last seen 11 weeks 1 day ago. Offline
Joined: 29 Jan 2011

already sent to support.

frankxyz
User offline. Last seen 11 weeks 1 day ago. Offline
Joined: 29 Jan 2011

Carlos,

If that's the case is it possible to automatically reduce the texture size to fit the target screen, or would that be prohibitive?

carlos m. icaza's picture
carlos m. icaza
User offline. Last seen 9 hours 8 min ago. Offline
Ansca Staff
Joined: 22 Jun 2009

@frankxyz - send to cicaza at anscamobile dot com ... I know the guy... he can look at it quick

Snow_
User offline. Last seen 25 weeks 5 days ago. Offline
Joined: 26 Oct 2010

I posted about this problem in another thread. To fix it (well works for me anyway). If you are on a Mac, download Pixen - it's free. Open the png in Pixen and then simply resave it. Pixen will automatically set it's dpi at 72 and I guess properly re-encodes it. The png should now show up in the simulator as well as device.

frankxyz
User offline. Last seen 11 weeks 1 day ago. Offline
Joined: 29 Jan 2011

done.

frankxyz
User offline. Last seen 11 weeks 1 day ago. Offline
Joined: 29 Jan 2011

am i windows. i use ps to save as png 24.

carlos m. icaza's picture
carlos m. icaza
User offline. Last seen 9 hours 8 min ago. Offline
Ansca Staff
Joined: 22 Jun 2009

Also, remove the ICC color profile. Android is notorious for PNG with ICC embedded color profiles... esp from PS.

Millerszone
User offline. Last seen 11 weeks 5 days ago. Offline
Joined: 16 Apr 2011

I've been using Corona with windows 7 64-bit, some of my images are saved as PNG-8 because some files are very large with PNG-24.
so, everything works great on windows, but when I transferred everything to my MacBook and run the simulator with PNG-8 images I get a blank white screen.

So with the Mac I can't use PNG-8 images?

Mike

carlos m. icaza's picture
carlos m. icaza
User offline. Last seen 9 hours 8 min ago. Offline
Ansca Staff
Joined: 22 Jun 2009

correct

rxmarccall's picture
rxmarccall
User offline. Last seen 1 day 3 hours ago. Offline
Joined: 18 Jan 2011

guys, i was having this issue also, i found that there is a 2000 pixel limit on the width, try making your png below 2000 and i bet it will display just fine.

Millerszone
User offline. Last seen 11 weeks 5 days ago. Offline
Joined: 16 Apr 2011

Nope, my images are 1024x768 or less and don't work.
Carlos is correct, can't display PNG-8 images on Mac Corona Simulator.

carlos m. icaza's picture
carlos m. icaza
User offline. Last seen 9 hours 8 min ago. Offline
Ansca Staff
Joined: 22 Jun 2009

not just the simulator - apple recommends 24 bit - much better on the device due to open gl performance too !

c.

Millerszone
User offline. Last seen 11 weeks 5 days ago. Offline
Joined: 16 Apr 2011

Good to know.
I've been using GLBasic for my iPhone/iPad apps.
I tried Corona for a couple of days, liked it, and purchased Corona Pro.

Thanks Carlos.

carlos m. icaza's picture
carlos m. icaza
User offline. Last seen 9 hours 8 min ago. Offline
Ansca Staff
Joined: 22 Jun 2009

...... thank you !!!!!!

c

tsuriyathep's picture
tsuriyathep
User offline. Last seen 10 hours 17 min ago. Offline
Joined: 21 Oct 2011

Does Mac still not support PNG8? My file sizes are huge over 15MB. Is it safe to use PNG8 on Android?

Viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.