Issue 69438 - Button shadows should use alpha transparency
Summary: Button shadows should use alpha transparency
Status: CLOSED OBSOLETE
Alias: None
Product: marketing
Classification: Infrastructure
Component: art (show other issues)
Version: current
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: bernhard
QA Contact: issues@marketing
URL: http://marketing.openoffice.org/art/g...
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-11 00:30 UTC by wulfthesaxon
Modified: 2017-05-20 09:04 UTC (History)
4 users (show)

See Also:
Issue Type: TASK
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Testcase for serving IE a downgraded image. Created by myself, licensed under GFDL. (878 bytes, text/html)
2006-11-01 02:35 UTC, wulfthesaxon
no flags Details
Here are the sources in vector format (SVG) for all my buttons. To whatever you want with alpha transparency on them. (163.68 KB, application/x-gzip)
2006-11-01 06:49 UTC, nicu_ooo
no flags Details
Transparent version of 180x60_3_get.png. (7.93 KB, image/png)
2006-11-03 03:24 UTC, wulfthesaxon
no flags Details
New version of IE downgraded image testcase. (15.42 KB, application/x-gzip)
2006-11-03 03:25 UTC, wulfthesaxon
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description wulfthesaxon 2006-09-11 00:30:50 UTC
The web buttons should use PNG alpha transparency so that they look good on
sites with background colors other than white.

I'd do it myself, but when I tried to create the drop shadow in the GIMP, the
Gaussian Blur was grayed out…
Comment 1 bernhard 2006-09-11 01:45:43 UTC
Thanks for your proposal - it's a good idea to have the background shining 
through the shadows.

And if you would be able to modify the buttons, this would be even better.

I don't know the application Nicu used to create the buttons, so I added him to 
the CC area to help you with informations about how to modifiy them. Perhaps he 
could provide some source files.

If you would be able to help us more, please join us at the Art Project's 
mailing list: art@marketing.openoffice.org
Comment 2 nicu_ooo 2006-09-11 07:00:31 UTC
I used Inkscape to create my buttons and source is available in SVG format (ask
for it).

However, I do NOT think is a good idea to use alpha transparency, unfortunately
the most browser on the web is still Internet Explorer 6 and it does not support
alpha transparency. 
In fact, this is why I made the buttons with ugly contours: converted them to
indexed PNG, removing antialiasing on the edges, but have a result looking the
same on every browser (a secondary reason was the file size in indexed PNG is
smaller and this is important for buttons placed on high traffic sites - indexed
means no alpha transparency).
Comment 3 bernhard 2006-09-11 08:19:48 UTC
@nicu: Thanks for your explanations. 

Is there a chance to use alpha transparency in GIF images? IIRC transparent GIFs
are supported by IE.

Wulf, do you want to work with the Inkscape SVGs? 

Best regards
Bernhard
Comment 4 nicu_ooo 2006-09-11 08:44:27 UTC
Aplha transparency is possible only for true color images, so only for PNG using
truecolor.
Indexed images, like GIF or PNG with 256 colors, have only solid transparency.

solid transparency = one color from the palette is assigned to transparency, a
pixel can be either transparent or opaque
alpha transparency = the image have one additional channel, is represented as
RGBA (RGB + Alpha), so it has the possibility of 256 degrees of transparecny (at
least for PNG)
Comment 5 wulfthesaxon 2006-11-01 02:35:15 UTC
Created attachment 40207 [details]
Testcase for serving IE a downgraded image. Created by myself, licensed under GFDL.
Comment 6 wulfthesaxon 2006-11-01 02:40:17 UTC
Sorry it's taken so long for me to reply, I was away from home for awhile and my
laptop is currently "out of commission".

In response to Nicu's comment that IE6 is the most common browser, at seems that
within a month IE7 (which supports alpha transparency) will be the most common
browser (as it is being pushed as a critical update via Automatic Update),
followed by Firefox (which also supports alpha transparency).

Also, it would at least be helpful to have separate versions with alpha
transparency so web devs can use user-agent sniffing (such as the easy example I
just attached) to serve IE the old version, but still give better browsers the
version with alpha transparency.
Comment 7 wulfthesaxon 2006-11-01 02:45:22 UTC
Note: For the testcase to work, you'll have to place two images in the same
directory as the file, one named ooo-button.png, the other named ooo-button-ie.png.
Comment 8 nicu_ooo 2006-11-01 06:49:38 UTC
Created attachment 40209 [details]
Here are the sources in vector format (SVG) for all my buttons. To whatever you want with alpha transparency on them.
Comment 9 wulfthesaxon 2006-11-03 03:09:13 UTC
I tested my method out on 180x60_3.svg (which is the equivalent of
180x60_3_get.png) and it seems to work well. IMHO, it looks better on white
backgrounds too, because the edge is smoother.  :)

I'll upload it as well as a new version of my testcase as soon as I'm done
posting this.

If somebody will post them, I'll work on the rest as well. I know the shadow is
a bit lighter in my version, but I can change that if necessary. The "GET" is
also a bit lower, but I'm not sure how that happened (IMHO, I don't think it
makes much of a difference though).
Comment 10 wulfthesaxon 2006-11-03 03:24:46 UTC
Created attachment 40279 [details]
Transparent version of 180x60_3_get.png.
Comment 11 wulfthesaxon 2006-11-03 03:25:25 UTC
Created attachment 40280 [details]
New version of IE downgraded image testcase.
Comment 12 stefan.baltzer 2008-05-05 10:37:47 UTC
SBA: Set Prio to P3.
Pls. see http://www.openoffice.org/scdocs/ddIssues_EnterModify.html#priority
Comment 13 stefan.baltzer 2008-05-05 11:23:39 UTC
Put floeff on c/c.
SBA->Floeff: Please comment, thx.
Comment 14 floeff+ooo 2008-05-05 17:05:09 UTC
Adding jpmcc
Comment 15 floeff+ooo 2008-05-05 17:07:58 UTC
floeff->jpmcc: We could add the SVGs and transparent images as addition to our
gallery, without replacing the original images. Agreed?
Comment 16 wulfthesaxon 2008-05-09 05:37:43 UTC
I think it might be best to have separate pages for each format. The gallery is
a bit long as it is. But yeah, having all the versions available seems like the
best idea for now.

I'm currently working on converting the SVGs to use transparency and exporting
them as PNGs, but I'm having some problems getting the text to look right on the
ones that say anything other than "GET". Any chance you have sources for those,
nicu?

BTW: Should we be using SVG, SVGZ, or both?
Comment 17 floeff+ooo 2008-05-09 09:25:16 UTC
If someone wants to work on the gallery, I'm happy to accept proposals for a new
page design. ;-) On the formats I can't say much, I'm no graphics expert. :-(
Comment 18 bernhard 2009-05-03 00:49:58 UTC
sources of the OOo buttons by Nicu attached here as well as the transparent
background buttons by Wulf - Issue is started, but still not included in the
galleries. To be done while creating the new galleries at the wiki
(http://wiki.services.openoffice.org/wiki/Art/Gallery)
Comment 19 Marcus 2017-05-20 09:04:09 UTC
obsolete