A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: why do my .pngs have grey boxes around them on some computers?

  1. #1
    Senior Member
    Join Date
    Aug 2005
    Posts
    225

    why do my .pngs have grey boxes around them on some computers?

    On certain computers my game has grey boxes around it's images and im not sure why. When i exported them i had a grey background but that doesn't explain why it only shows up on certain computers.

    Does it matter if i have one of these options checked when i export an image to save as png:

    - interlaced

    - smooth

    - dither solid colors

    or maybe its the resolution setting? if u had this problem or know why this is happening i'd appreciate the help. it's not reaaaaaaaally annoying but im a perfectionist.

  2. #2
    Senior Member
    Join Date
    Sep 2004
    Posts
    633
    Those computers' video card is set to display 16 bit color ( I'm pretty sure )

    That will do it almost every time. On displays/cards using true/32 bit/whatever they call it, color it won't happen.

  3. #3
    Senior Member Gloo pot's Avatar
    Join Date
    Aug 2005
    Location
    Australia Mate!
    Posts
    874
    Is that PNG's or all image files? And is there away around this?
    92.7 Fresh FM for all your South Aussies - Doof Doof music FTW people!

  4. #4
    Yes we can tomsamson's Avatar
    Join Date
    Sep 2001
    Location
    Team Titan Secret Lair
    Posts
    4,666
    the problem that your art won´t look the same on machines with lower color range setting is not png specific,it can happen with all media file types if they use color values out of the scope of a color setting on the user machine.
    The problem is just even way more noticable for pngs (speaking of high-spec png32 now) as its the format really allowing use of the full 32 bit color palette plus various alpha value shades for images.
    So its rather sure that if you use a png32 with lots of colors and maybe a nice alpha fade there,too,it will look really awkward on machines with low color range setting.
    Its good to keep simple restrictions,meaning for example using gifs where it makes sense (also good regarding getting lower filesize) but if you´d focus on having graphics looking fine on the oldest machine setups,you could aswell use really limited gifs only using a websafe palette.(And other than for retro touch pixel art games that would look sucky in most cases).
    Last edited by tomsamson; 11-30-2005 at 09:36 AM.

  5. #5
    Senior Member
    Join Date
    Apr 2005
    Posts
    467
    Yep,

    PNG use 24 bit to create a smooth mask (transparency)
    A GIF will use 8 bit for the mask, hence the "pixilated" look of it

    I have noticed as well differences when using gifs (your kinda grey effect) on 16bit video cards.

    Can't please everyone
    Hope nobody knows I am still on Flash 5
    ______________________________________
    All artists are prepared to suffer for their work
    but why are so few prepared to learn to draw?(Banksy)

  6. #6
    Senior Member
    Join Date
    Aug 2005
    Posts
    225
    hmm. thanks for the info

  7. #7
    Senior Member Gloo pot's Avatar
    Join Date
    Aug 2005
    Location
    Australia Mate!
    Posts
    874
    Yea thanks guys.
    92.7 Fresh FM for all your South Aussies - Doof Doof music FTW people!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center