iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-04-2006, 02:02 PM
WebProWorld Pro
 
Join Date: Jun 2004
Location: Spain
Posts: 188
randelld RepRank 0
Default Images with transparency??

Hi All.
I have a background image in a table and want to place a transparent image file containing text only with drop shadow into it. So that I can overlay different text on different pages.

My problem is that when I try to do it, the text always has a rough looking white outline that looks terrible. Would this be caused by the drop shadow? Does anyone know how I can create the text overlay without the horrible rough outline??

Thanks all.
__________________
Spain Forum
Yecla
Reply With Quote
  #2 (permalink)  
Old 01-04-2006, 03:44 PM
Tim's Avatar
Tim Tim is offline
WebProWorld Veteran
 
Join Date: Jul 2004
Location: On the edge of the UK
Posts: 423
Tim RepRank 0
Default Re: Images with transparency??

Quote:
Originally Posted by randelld
Hi All.
I have a background image in a table and want to place a transparent image file containing text only with drop shadow into it....My problem is that when I try to do it, the text always has a rough looking white outline that looks terrible. Would this be caused by the drop shadow? Does anyone know how I can create the text overlay without the horrible rough outline??
I can't quite picture what you're aiming at here but try recreating the image using the same background colour as your pages then (with anti-aliasing on and a tolerance of say 20) clear the background colour to reduce file-size. Assuming it's a Gif, play around with the number of colours when optimising it to maximise the smoothness of the shadow gradient.
__________________
Pleasure in the job puts perfection in the work. Aristotle (384-322 BC)
Reply With Quote
  #3 (permalink)  
Old 01-04-2006, 04:55 PM
WebProWorld Veteran
 
Join Date: Apr 2005
Location: Winter Park, FL
Posts: 616
KeithO RepRank 0
Default

what program are you using for image editing?
Reply With Quote
  #4 (permalink)  
Old 01-04-2006, 05:08 PM
WebProWorld New Member
 
Join Date: Sep 2004
Location: New Jersey
Posts: 4
wslover RepRank 0
Default Re: Images with transparency??

When exporting or "saving for web" in photoshop, change the Matte color in the presets to the background color you are using. It defaults to white, that's why you get the white edge.

Caution, do not use the None option, you will get jagged edges.
Reply With Quote
  #5 (permalink)  
Old 01-04-2006, 05:18 PM
WebProWorld Veteran
 
Join Date: Sep 2003
Posts: 322
Mac 5 RepRank 1
Default

What color is the background on the webpage? It's hard for Photoshop to fade to clear, it usually goes to white instead and that is probably what you're seeing. Are you using the layer generated shadow?

Make another layer below the dropshadow with a 2nd drop shadow that is LARGER than your black dropshadow that is the webpage background color. Do not use much of a blur or feather. In Photoshop It should look like the image with a drowshadow, and a glow of the web background color. It should be small but a hard edge of the background color. The rest of the layer should be transparent. (It can be made with whatever method you want, with a selection and fill, generated shadow, outer glow, etc.)

Save that as a gif with transparency checked. You can play with the save for web details that Bootboy describes above also.
Reply With Quote
  #6 (permalink)  
Old 01-04-2006, 06:35 PM
WebProWorld Pro
 
Join Date: Jun 2004
Location: Spain
Posts: 188
randelld RepRank 0
Default Thanks

Hi all,
Thank you all very much for the suggestions. I'll be going through them in the morning. I have uploaded the poor result so that you can see exactly what I mean. The section with the car is a gif that streches the whole width and has the blue background. That gif is set as background image. Then I have put a table over it and inserted the text image into the table. The idea being that I can change the text on different pages.
__________________
Spain Forum
Yecla
Reply With Quote
  #7 (permalink)  
Old 01-04-2006, 11:01 PM
khurramali's Avatar
WebProWorld Veteran
 
Join Date: Aug 2005
Location: Karachi - Pakistan
Posts: 584
khurramali RepRank 1
Default Re: Images with transparency??

Quote:
Originally Posted by wslover
When exporting or "saving for web" in photoshop, change the Matte color in the presets to the background color you are using. It defaults to white, that's why you get the white edge.

Caution, do not use the None option, you will get jagged edges.
wsolver is right, this is the only solution.
__________________
ARFY.NET, SEO outsourcing to Pakistan
SEO Pakistan, SEO Guru Pakistan, Khurram Ali Linkedin.
Reply With Quote
  #8 (permalink)  
Old 01-05-2006, 04:07 AM
Jabber_uk's Avatar
WebProWorld Pro
 
Join Date: Jun 2004
Location: Plymouth UK
Posts: 206
Jabber_uk RepRank 0
Default

I don't use 'drop shadow' for transparent GIFs for the very reason specified. I would either use a jpg (non transparent of course) OR I would create TWO layers of text, the lower one being a grey like CCCCCC for instance to ceate the illusion of drop shadow. Then save as GIF.
__________________
Jabbs
"The More I Know, The Less I Seem To Know!"
Anything IT & Support Forums
Reply With Quote
  #9 (permalink)  
Old 01-05-2006, 04:09 AM
Jabber_uk's Avatar
WebProWorld Pro
 
Join Date: Jun 2004
Location: Plymouth UK
Posts: 206
Jabber_uk RepRank 0
Default

I tend to make an image with TWO text layers, one sits behind the other creating the illusion of being a shadow.
__________________
Jabbs
"The More I Know, The Less I Seem To Know!"
Anything IT & Support Forums
Reply With Quote
  #10 (permalink)  
Old 01-05-2006, 04:35 AM
WebProWorld Pro
 
Join Date: Jun 2004
Location: Spain
Posts: 188
randelld RepRank 0
Default Thanks all

I am still learning to use the functions of photoshop, so I have tried the most simple solution from above.
Wslover, I managed to find the matte option and have done that and now i am happy with the result. I can now continue and have learned a valuable tip once again from this forum.
Here is what i was trying to achieve
http://www.motoringspain.com/wpw/
Muchisimas Gracias Caballeros
__________________
Spain Forum
Yecla
Reply With Quote
  #11 (permalink)  
Old 01-05-2006, 10:36 AM
WebProWorld Member
 
Join Date: Oct 2005
Location: Asheville, NC
Posts: 28
docholiday RepRank 0
Default PNG is your friend

I'm assuming that you are capable of editing web pages, and if so - for any transparency you wish to create, you don't have to use GIF. Just use PNG, the best format for alpha-blended transparency. The caveat is that Internet Exploder (of course) hates it. The simple workaround is in a script that is called upon by the img tag in CSS.

The demo: http://webfx.eae.net/dhtml/pngbehavior/demo.html

The tutorial: http://webfx.eae.net/dhtml/pngbehavior/pngbehavior.html

It works beautifully and degrades as far as IE5.5 - this is the holy grail of transparency support.
Reply With Quote
  #12 (permalink)  
Old 01-05-2006, 10:38 AM
WebProWorld Member
 
Join Date: Oct 2005
Location: Asheville, NC
Posts: 28
docholiday RepRank 0
Default Ummm

Not sure how to delete posts, but the others got through even though it said 'server error' so I'm changing this message to say this.
Reply With Quote
  #13 (permalink)  
Old 01-05-2006, 11:08 AM
WebProWorld Member
 
Join Date: Oct 2005
Location: Asheville, NC
Posts: 28
docholiday RepRank 0
Default There was a server error

Not sure how to delete posts, but the others got through even though it said 'server error' so I'm changing this message to say this.
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 02:49 PM.



Search Engine Optimization by vBSEO 3.3.0