Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-29-2007, 11:34 PM
Michael Morris's Avatar
Michael Morris Michael Morris is offline
 
Join Date: Nov 2003
Location: Knoxville TN
Posts: 774
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default PNG 8 - The Lost Format

The dreaded Halo effect on a GIF. We've all seen it. Switch the background of your forum ever so slightly and prepare to cringe. GIF has served us well, but in the end it's a technology developed when the Commodore 64 was still the most popular computers in the world. It is old technology, and it shows.

GIF is also owned by Compuserve and in the mid 90's they tried to pull the format out from under everyone's feet with trademark lawsuits ad naseum. In this turmoil PNG was developed.

If you're into history read on here (http://www.libpng.org/pub/png/pnghist.html)

In the years that have followed PNG has come to be supported on every major browser to some degree. IE can display PNG's, but it messes the image up horribly if it is 32-bit and has an alpha channel (that is to say, opacity). The thing is, PNG-32 isn't the only variant of PNG. There are two other major branches - PNG-24 which has no transparency or alpha (that I know of) and PNG-8, which does but is limited to a 256 color palette.

PNG-8 has the distinction of quietly working in every major browser - but it's often overlooked because of it's big brother PNG-32. Still, if you want to get rid of GIF's horrid halo effects it's probably the best answer out there since unlike PNG-32 you know it will work in IE6 (and 5 for that matter).

PNG8's are also quite a bit smaller than PNG32's and not noticeably larger than an equivalent GIF. It's worth looking into.
Reply With Quote
  #2  
Old 10-30-2007, 12:28 AM
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Location: Arkansas
Posts: 2,815
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've not worked (much) with 32-bit PNGs, but I have worked mostly with PNG-24 and have seen the light-blue effect with that in IE as opposed to the non-transparancy. There are fixes out there that I've seen, but the ones I've implemented to ensure IE 6 and 7 render the format properly have caused a slight delay in processing the image and therefore showing the light-blue "haze" or "transparency overlay" for a part of a second - enough to be an annoyance if you work with them enough.

My .02 cents for working with PNGs.
Reply With Quote
  #3  
Old 10-30-2007, 01:16 AM
Michael Morris's Avatar
Michael Morris Michael Morris is offline
 
Join Date: Nov 2003
Location: Knoxville TN
Posts: 774
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by davidw View Post
I've not worked (much) with 32-bit PNGs, but I have worked mostly with PNG-24 and have seen the light-blue effect with that in IE as opposed to the non-transparancy. There are fixes out there that I've seen, but the ones I've implemented to ensure IE 6 and 7 render the format properly have caused a slight delay in processing the image and therefore showing the light-blue "haze" or "transparency overlay" for a part of a second - enough to be an annoyance if you work with them enough.

My .02 cents for working with PNGs.
Which is why I advocate using PNG8. IE 5.5, 6 and 7 display this form of PNG without a problem. IE 4 and 5 simply drop the colors which have an alpha value - meaning the drop shadow disappears - there's not grey box effect.
Reply With Quote
  #4  
Old 11-02-2007, 11:02 AM
RedTyger's Avatar
RedTyger RedTyger is offline
 
Join Date: Nov 2006
Location: UK
Posts: 1,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PNG 24s can do opacity, unless my copy of Photoshop is mislabelled.

Quote:
Originally Posted by davidw View Post
I've not worked (much) with 32-bit PNGs, but I have worked mostly with PNG-24 and have seen the light-blue effect with that in IE as opposed to the non-transparancy. There are fixes out there that I've seen, but the ones I've implemented to ensure IE 6 and 7 render the format properly have caused a slight delay in processing the image and therefore showing the light-blue "haze" or "transparency overlay" for a part of a second - enough to be an annoyance if you work with them enough.

My .02 cents for working with PNGs.
There is a CSS-only solution which works well, particularly where the PNGs are used for layout purposes. It has no negative side effects, but does have the caveat of not always being suitable because it transfers the PNG to being an element's background image. Works back to IE5 or IE5.5, something like that. I'll post it if you need it.



Quote:
Originally Posted by Michael Morris View Post
Which is why I advocate using PNG8. IE 5.5, 6 and 7 display this form of PNG without a problem.
Actually they do, IE sometimes renders the palette off by a shade or so, depending on your image. If you're trying to precisely match a shade then it can show up with the colours not matching.

Run through a few of the tests on this page in Firefox and a version of IE. If you only see a one-colour box, the browser is rendering correctly, or you can see the effect here. That screenshot is from the beta, I don't if it was fixed in the gold release. I'd appreciate knowing actually!
Reply With Quote
  #5  
Old 11-05-2007, 05:41 AM
Michael Morris's Avatar
Michael Morris Michael Morris is offline
 
Join Date: Nov 2003
Location: Knoxville TN
Posts: 774
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RedTyger View Post
PNG 24s can do opacity, unless my copy of Photoshop is mislabelled.
They're not supposed to. From what I understand of the format PNG24 is 24 bit true color without alpha channeling. I'm probably wrong though.

Quote:
There is a CSS-only solution which works well, particularly where the PNGs are used for layout purposes. It has no negative side effects, but does have the caveat of not always being suitable because it transfers the PNG to being an element's background image. Works back to IE5 or IE5.5, something like that. I'll post it if you need it.
I have yet to see a CSS approach that prevents grey-box-ville with PNG32 images, particularly on complex layouts with multiple PNG's on top of one another.

Quote:
Actually they do, IE sometimes renders the palette off by a shade or so, depending on your image.
:ahem: MONITORS can do the same regardless of browser. IE is guilty of many sins, but being off a shade or two in nowhere among the worst of them. I honestly don't care if layouts depricate in IE, as long as they do so gracefully.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:54 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03785 seconds
  • Memory Usage 2,213KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete