SunQuest
           Photoshop Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignPhotoshop Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 15th, 2004, 06:45 PM
deolmstead deolmstead is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 75 deolmstead User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 37 m 48 sec
Reputation Power: 5
transparencies and PNGs

ok, here's the challenge. Using CSS, I want to put a semi-transparent image over another image (by semi-transparent I mean a GIF in which alternating pixels are transparent - see attachment).

I drew this image basically pixel-by-pixel (via copy/paste), and it's ok as far as it goes, but what I REALLY want is for the density of opaque pixels to increase from left to right, so the effect when laid over an image is essentially that of a gradient. I DON'T want to have to draw this image pixel by pixel!

Whenever I try and accomplish this in Photoshop, it uses semi-transparent pixels which then become opaque when optimized. If I could figure out how to tell photoshop to build a gradient using only 1 color and no semi-transparent pixels (or barring that, white and another color and then I could delete the white...), that would do it I think.

Any ideas on how this might be accomplished?

Thanks,
Daniel
Attached Images
File Type: gif benefit2.gif (852 Bytes, 303 views)

Reply With Quote
  #2  
Old June 16th, 2004, 02:03 AM
deolmstead deolmstead is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 75 deolmstead User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 37 m 48 sec
Reputation Power: 5
nevermind

I figured it out - and it looks like crap:
http://www.theatrebayarea.org/v2/index.jsp?css=blue

OK, plan B. Anybody have any experience with the PNG format? It looks promising, but clearly has some support issues for IE. Are there hacks or workarounds to have PNGs, transparency and IE all at once? Anyone have any sites or tutorials they can recommend?

btw - to do what I described, I saved the file as a PNG-8, which allowed me to set # of colors and transparency dithering. Then I re-opened the file in Imageready and saved it as a GIF.

-Daniel

Reply With Quote
  #3  
Old June 16th, 2004, 09:12 AM
1beb's Avatar
1beb 1beb is offline
This tagline is not long enoug
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2003
Location: Toronto, ON Canada! I AM CANADIAN
Posts: 861 1beb User rank is Corporal (100 - 500 Reputation Level)1beb User rank is Corporal (100 - 500 Reputation Level)1beb User rank is Corporal (100 - 500 Reputation Level)1beb User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 h 32 m 12 sec
Reputation Power: 9
Send a message via ICQ to 1beb Send a message via AIM to 1beb Send a message via MSN to 1beb Send a message via Yahoo to 1beb
I had this problem before, the best way to go about transparency on the web right now is through 'faked' transparency. Otherwise it get's really messy... see this thread.

http://forums.devshed.com/t104323/s.html

Reply With Quote
  #4  
Old June 16th, 2004, 01:20 PM
deolmstead deolmstead is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 75 deolmstead User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 37 m 48 sec
Reputation Power: 5
I'm pretty accustomed to faking transparency, but I was hoping to go about this one differently as I wanted to be able to switch out different headers depending on a user-selected stylesheet, as well as randomly load images behind the transparent header.

There are a number of workarounds out there, all using IE's alphaimageloader proprietary tag. The one you followed from Dalton seems pretty graceful, but riddled with problems.

I tried the one described at http://webfx.eae.net/dhtml/pngbehavior/pngbehavior.html and it seems to work well. Takes a second for the image to go transparent, and it takes a little longer to load, so I'm not sure I'll stick with it, but I can use CSS so that the behavior only applies to this one image and not every image loaded on the page, so I'm going to play with it a bit more.

Thanks,
Daniel

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignPhotoshop Help > how to make a dithered gradient (trans -> opaque)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway