Best format for frames

ASNet0007

Joined: 2006-10-17
Posts: 177
Posted: Tue, 2008-03-04 17:04

I wanted to make a few new image frames, and wanted to know whats the best format (gif etc) to create transparant images for compatability.
Cheers

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2008-03-04 17:32

http://codex.gallery2.org/Gallery2:Modules:imageframe#Creating_an_Imageframe_using_Images
.gif only has transparency of color. So the background color has to be the same as the transparency color.
.png on the other hand has true transparency. So png is the way to go for frames that would look good on differing backgrounds.
But there is no free lunch because different browsers have differing compatibility: http://entropymine.com/jason/testbed/pngtrans/

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team