[ Phuket Info | Thailand Hotels | Phuket Diving | Phuket Nightlife | Phuket Classifieds | Phuket Links ]
PHUKET-INFO.COM Forums Mai Thai Bar Phuket

Go Back   PHUKET-INFO.COM Forums > Off Topic Forums > Webmaster World

Reply
 
Thread Tools Search this Thread
  #1  
Old 24-09-2005, 13:34
LivinLOS's Avatar
LivinLOS LivinLOS is offline
Registered User [2776]
Senior Elite Member
 
Join Date: Jun 2004
Location: Patong
Age: 35
Posts: 18,810
image transparency rendering

Graphics problem..

I am trying to sort out and finish a site for a mate.. The issue I am having is the sites color scheme is black / charcoal / orange (harley colors)..

When I have a black background and put a graphic with a transparency on it (as I must do for his logos, theres a white fuzz around the image as it renders the image on the black backgorund.. Looks ugle and ruins the image at small resolutions..

How do I set a transparency to work with a dark background color ??

Can see what I mean at www.V-TwinTours.com
__________________
Men have only 2 emotional states, hungry and horny.. So ladies, if you see me without an erection, make me a sandwich.
Reply With Quote
Guest Info

+:+:+ Forum Headquarter +:+:+
Mai Thai Bar
If you look for a hotel - Book hotel here
Register and become a member and you will not see this box.

  #2  
Old 24-09-2005, 15:50
Nicke's Avatar
Nicke Nicke is offline
Administrator [1]
Senior Elite Member
 
Join Date: May 2002
Location: Patong beach, Thailand
Age: 37
Posts: 9,654
Send a message via ICQ to Nicke
Usually you have a setting for Matte if you want to save with transparency, set matte as black or white or whatever background color you have. I think most image editing programs use white as default.

Quote:
Originally Posted by LivinLOS
Graphics problem..

I am trying to sort out and finish a site for a mate.. The issue I am having is the sites color scheme is black / charcoal / orange (harley colors)..

When I have a black background and put a graphic with a transparency on it (as I must do for his logos, theres a white fuzz around the image as it renders the image on the black backgorund.. Looks ugle and ruins the image at small resolutions..

How do I set a transparency to work with a dark background color ??

Can see what I mean at www.V-TwinTours.com
__________________
PhuketThailand PhotosMai Thai Bar
Reply With Quote
  #3  
Old 24-09-2005, 16:53
LivinLOS's Avatar
LivinLOS LivinLOS is offline
Registered User [2776]
Senior Elite Member
 
Join Date: Jun 2004
Location: Patong
Age: 35
Posts: 18,810
Done that in fireworks..

Still leaving a white outline.. Wonder if white is coded into the image somehow.. Shouldnt be as I made the 'white' the transparent color but perhaps its an off white due to the merging of pixels as it was resized..
__________________
Men have only 2 emotional states, hungry and horny.. So ladies, if you see me without an erection, make me a sandwich.
Reply With Quote
  #4  
Old 24-09-2005, 17:20
Nicke's Avatar
Nicke Nicke is offline
Administrator [1]
Senior Elite Member
 
Join Date: May 2002
Location: Patong beach, Thailand
Age: 37
Posts: 9,654
Send a message via ICQ to Nicke
A quick fix would be to select all, reduce the selection with 1 pixel (or maybe 2) and you should get rid of the white/light pixels.

Or select by color and select all whites and/or light pixels and simply erase them.
__________________
PhuketThailand PhotosMai Thai Bar
Reply With Quote
  #5  
Old 25-09-2005, 18:18
Tyfon Tyfon is offline
Banned user [4675]
Senior Elite Member
 
Join Date: Dec 2004
Location: London
Age: 3
Posts: 1,343
Are you working in jpeg format at any point along the way? Or otherwise dithering colours?

When setting the palette transparency you can only nominate one entry as the transparent colour. If there is any jpeg (or other) compression or dithering in the image's origins then you will find that along a border between colours the compression 'smoothes' the edge a little so, for example, along a black and white border you get a layer of grey pixels. If you set your transparency to white then the grey pixels will not be transparent and you get a light (perceived as white) edge to black objects.

To eliminate this I took your graphic and put it in Paintshop Pro. I upper the colour resolution to 16 million and then used colour exchanger to alter all the white background pixels to blue (0,0,255) - a colour not in the original palette. Setting the colour exchanger's tolerance to 80 meant that the lighter shades of grey were aso changed to blue. Thecomplicating factor was that the image of the engine contained some white and light grey elements so I couldn't just universaly change all light greys to blue - I had to use the colour exchanger brush to skirt around the engine. Over the text I could just go mad. Eventually I upped the colur exchanger tolerance to 100 to eliminate all the greys around the text. That left me with a single unique colour (blue) to nominate as transparent which I did and saved as gif (below - put it on a black background and you'll see).

So, in summary, work only with uncompressed gifs and bitmaps with large palettes (they will be reduced when saving as the final gif) and no colour dithering. Use a striking colour not present elswhere in the image (pure blue is good for most occasions) to flood the background(s) and set this as your transparent colour.

Cheers,

K.
Attached Images
File Type: gif Image1.gif (30.1 KB, 16 views)
Reply With Quote

Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Forum Jump


All times are GMT +7. The time now is 02:27.


 
Hotel Guide

Services

Summer Breeze Hotel Thai Visa Express - Immigration consultants Phuket smart homes, home cinema, lighting controllers
Powered by vBulletin Version 3.6.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC3 © 2006, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33