Re: [Gimp-user] transparency with png
Am Montag, 12. März 2001 21:59 hast du geschrieben: > If you want fading to backgroud, you are basically out of luck until PNGs > are more fully supported. (GIFs don't work because it only has > transparency on or off, no fading). > > What I now do is have a GIMP XCF file with the "top" layer fading to > transparent as I want, and a background layer that I can change at will. > Thus for my pale yellow backround web pages, I can creat a new > non-transparent JPEG which fades to my pale yellow. For a white > background, I create another JPEG which fades to white, etc. > > This isn't ideal, for all of the obvious reasons, but it does work for > most usages. There is a better workaround since we have true transparency for web images. It has the disadvantage to only work with simple backgrounds, though. there are two layers: one with your image an one with the (simple) background of the webpage. Then "alpha -> selection" and save the selection into a channel. combine the two layers. invert the selection (after you get it back from the channel) and cut the background. Then you have a simple alpha, a region where the alpha fading is combined with the background and the picture. Now there is only the problem to convert the RGB image to indexed. The advantage: There is no border between the image and the webpage background (sometimes image colors are different from the same colors in images). Uwe -- mailto:[EMAIL PROTECTED] http://rcswww.urz.tu-dresden.de/~koloska/ ---- right now the web page is in german only but this will change as time goes by ;-) ___ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
Re: [Gimp-user] transparency with png
There's a couple of scripts that take a background color (or layer) and make a thin halo around your transparent image. This won't make a smooth gradient, but if you have some idea what your background is going to be it looks great. Even against a patterned background the human eye is quite forgiving. The 2 I know offhand (I wrote one) are prep4gif and alphaGif. Happy GIMPing, Seth Burgess [EMAIL PROTECTED] --- Bill Lee <[EMAIL PROTECTED]> wrote: > Carl Constantine wrote: > > > > On 3/12/2001 07:35, Carl Constantine at > [EMAIL PROTECTED] wrote: > > > > > On 3/12/2001 06:58, Jason P. Holland at > [EMAIL PROTECTED] wrote: > > > > > >> Thanks for the quick response. In IE 5.5, the > background is light blue. In > > >> netscape 4.76 on my linux box, its black. the > graphic is at > > >> http://jholland.nichware.net/alivepreview.html. > i have no clue. seems like > > >> it would work. thanks for the help. > > > > > > It appears properly in MSIE 5.0 on the Mac. > Netscape has a black background. > > > > > > I would hazard to guess that MSIE 5.5 on > Winblows isn't fully alpha-png > > > compatible just as suggested by Rebecca Walter. > It must be supported in the > > > browser for it to work. > > > > > > > I just thought of another approach, since the > graphic looks quite nice with > > the exception of the boarder around the main > image, you can always try > > cropping the image so there is no > boarder/background. Then it won't matter > > what browser you use, it will look correct. > > > > -- > > > > > __ _ > Carl B. Constantine > >/ / (_)__ __ __ >[EMAIL PROTECTED] > > / /__/ / _ \/ // /\ \/ / (2.4.1) > ICQ: 26351441 > > //_/_//_/\_ _/ /_/\_\ Stormix 2000 > > PGP > key available on request > > > > > > > Up the line - out the server- past the firewall > - nothing but Net!! > > This approach works just fine unless the image has > rounded corners, as many of > mine do. Cropping leaves you with a rectangular > image which, without a > transparent background, causes annoying white (or > whatever your background color > is) artifacts outside the rounded corners. > > Regards, > > Bill Lee > ___ > Gimp-user mailing list > [EMAIL PROTECTED] > http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ ___ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
RE: [Gimp-user] transparency with png
On Mon, 12 Mar 2001, Jason P. Holland wrote: > [...] Why would it behave this way? Appearently full PNG support is uneven in browsers. > i could use jpg, but i like the quality of png better. And JPEG doesn't support any transparency. If you want fading to backgroud, you are basically out of luck until PNGs are more fully supported. (GIFs don't work because it only has transparency on or off, no fading). When I first joined this list, I was asking about fading to transparent for the web. And have given up. What I now do is have a GIMP XCF file with the "top" layer fading to transparent as I want, and a background layer that I can change at will. Thus for my pale yellow backround web pages, I can creat a new non-transparent JPEG which fades to my pale yellow. For a white background, I create another JPEG which fades to white, etc. This isn't ideal, for all of the obvious reasons, but it does work for most usages. Someone who'd bothered to learn GIMP scripting could even script the generation of different versions each with a fade to a new background -j -- Jeffrey Goldberg I have recently moved, see http://www.goldmark.org/jeff/contact.html Relativism is the triumph of authority over truth, convention over justice ___ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
Re: [Gimp-user] transparency with png
"Jason P. Holland" <[EMAIL PROTECTED]> writes: > Thanks for the quick response. In IE 5.5, the background is light blue. In > netscape 4.76 on my linux box, its black. the graphic is at > http://jholland.nichware.net/alivepreview.html. i have no clue. seems like > it would work. thanks for the help. Just for the record, Mozilla 0.8 displays the transparency correctly. Most browsers can handle regular (non-transparent) png's (apart from MS IE 4.x under Mac, IIRC). Very few have correct support for png transparency, sadly... -- Arcady Genkin Nostalgia isn't what it used to be. ___ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
RE: [Gimp-user] transparency with png
On Mon, 12 Mar 2001 08:58:18 -0600, Jason P. Holland said: | Thanks for the quick response. In IE 5.5, the background is light blue. In | netscape 4.76 on my linux box, its black. the graphic is at | http://jholland.nichware.net/alivepreview.html. i have no clue. seems like | it would work. thanks for the help. | | Jason On Linux/Konqueror the background is a blue gradient with a black backdrop shadow (shadow has rounded edges) -- Koos PolT: +31 20 3116122 Systems Administrator F: +31 20 3116200 Compuware Europe B.V. E: [EMAIL PROTECTED] Amsterdam PGP public key available ___ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
RE: [Gimp-user] transparency with png
yeah, i loose to much when i save it as a gif. and i was trying to move to png, with all the license issues involved with gif. png is just better. but if browser support is sad, i should forget it. i would rather crop off the edges and not have to deal with the background looking different in every brower. or, i could just make the background white and stick with that. thanks! jason > >In addition: saved as a gif and the transparency worked just fine. Interesting >comparison: >81561 Mar 12 09:37 test2.png > 31034 Mar 12 09:49 test2A.gif > 46725 Mar 12 09:39 test2A.png >(The A files are the saved alternatives from the test2.png original) > >Of course, the "fade to transparent" shadow of the graphic is lost with the gif, >replaced by a solid black shadow. Would that work properly with the png format? ___ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
Re: [Gimp-user] transparency with png
Carl Constantine wrote: > > On 3/12/2001 07:35, Carl Constantine at [EMAIL PROTECTED] wrote: > > > On 3/12/2001 06:58, Jason P. Holland at [EMAIL PROTECTED] wrote: > > > >> Thanks for the quick response. In IE 5.5, the background is light blue. In > >> netscape 4.76 on my linux box, its black. the graphic is at > >> http://jholland.nichware.net/alivepreview.html. i have no clue. seems like > >> it would work. thanks for the help. > > > > It appears properly in MSIE 5.0 on the Mac. Netscape has a black background. > > > > I would hazard to guess that MSIE 5.5 on Winblows isn't fully alpha-png > > compatible just as suggested by Rebecca Walter. It must be supported in the > > browser for it to work. > > > > I just thought of another approach, since the graphic looks quite nice with > the exception of the boarder around the main image, you can always try > cropping the image so there is no boarder/background. Then it won't matter > what browser you use, it will look correct. > > -- > > __ _ Carl B. Constantine >/ / (_)__ __ __[EMAIL PROTECTED] > / /__/ / _ \/ // /\ \/ / (2.4.1)ICQ: 26351441 > //_/_//_/\_ _/ /_/\_\ Stormix 2000 > PGP key available on request > > > Up the line - out the server- past the firewall - nothing but Net!! This approach works just fine unless the image has rounded corners, as many of mine do. Cropping leaves you with a rectangular image which, without a transparent background, causes annoying white (or whatever your background color is) artifacts outside the rounded corners. Regards, Bill Lee ___ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
Re: [Gimp-user] transparency with png
Bill Lee wrote: > > "Jason P. Holland" wrote: > > > > Thanks. Why would it behave this way? Does that have to do with the way > > the browser handles the png graphic format? And why is it not transparent? > > Anyone have a clue? i could use jpg, but i like the quality of png better. > > I appreciate all the help! > > > > Jason > > > > > -Original Message- > > > From: Jeffrey Goldberg [mailto:[EMAIL PROTECTED]] > > > Sent: Monday, March 12, 2001 9:11 AM > > > To: Jason P. Holland > > > Cc: 'Rebecca J. Walter'; [EMAIL PROTECTED] > > > Subject: RE: [Gimp-user] transparency with png > > > > > > > > > On Mon, 12 Mar 2001, Jason P. Holland wrote: > > > > > > > In IE 5.5, the background is light blue. In > > > > netscape 4.76 on my linux box, its black. the graphic is at > > > > http://jholland.nichware.net/alivepreview.html. > > > > > > Opera (for Linux, v5-beta6) gives a black background. > > > > > > -j > > > > > > -- > > > Jeffrey Goldberg > > > I have recently moved, see http://www.goldmark.org/jeff/contact.html > > > Relativism is the triumph of authority over truth, convention > > > over justice > > > > > Opened in Netscape 4.61 under Linux. Using Plugger plugin for png files. It > displays as black, too. Opened the graphic in GIMP and then saved with the "Save > background color" unchecked: no difference. I suspect the plugin doesn't handle > the transparency properly. > > Regards, > > Bill Lee In addition: saved as a gif and the transparency worked just fine. Interesting comparison: 81561 Mar 12 09:37 test2.png 31034 Mar 12 09:49 test2A.gif 46725 Mar 12 09:39 test2A.png (The A files are the saved alternatives from the test2.png original) Of course, the "fade to transparent" shadow of the graphic is lost with the gif, replaced by a solid black shadow. Would that work properly with the png format? Regards, Bill Lee ___ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
RE: [Gimp-user] transparency with png
cool! that is a good idea. if every browser displays my transparency different, i really don't have a choice though. thanks everyone for the suggestions and help! Jason > > I just thought of another approach, since the graphic looks > quite nice with > the exception of the boarder around the main image, you can always try > cropping the image so there is no boarder/background. Then it > won't matter > what browser you use, it will look correct. > ___ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
Re: [Gimp-user] transparency with png
On 3/12/2001 07:35, Carl Constantine at [EMAIL PROTECTED] wrote: > On 3/12/2001 06:58, Jason P. Holland at [EMAIL PROTECTED] wrote: > >> Thanks for the quick response. In IE 5.5, the background is light blue. In >> netscape 4.76 on my linux box, its black. the graphic is at >> http://jholland.nichware.net/alivepreview.html. i have no clue. seems like >> it would work. thanks for the help. > > It appears properly in MSIE 5.0 on the Mac. Netscape has a black background. > > I would hazard to guess that MSIE 5.5 on Winblows isn't fully alpha-png > compatible just as suggested by Rebecca Walter. It must be supported in the > browser for it to work. > I just thought of another approach, since the graphic looks quite nice with the exception of the boarder around the main image, you can always try cropping the image so there is no boarder/background. Then it won't matter what browser you use, it will look correct. -- __ _ Carl B. Constantine / / (_)__ __ __[EMAIL PROTECTED] / /__/ / _ \/ // /\ \/ / (2.4.1)ICQ: 26351441 //_/_//_/\_ _/ /_/\_\ Stormix 2000 PGP key available on request Up the line - out the server- past the firewall - nothing but Net!! ___ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
Re: [Gimp-user] transparency with png
"Jason P. Holland" wrote: > > Thanks. Why would it behave this way? Does that have to do with the way > the browser handles the png graphic format? And why is it not transparent? > Anyone have a clue? i could use jpg, but i like the quality of png better. > I appreciate all the help! > > Jason > > > -Original Message- > > From: Jeffrey Goldberg [mailto:[EMAIL PROTECTED]] > > Sent: Monday, March 12, 2001 9:11 AM > > To: Jason P. Holland > > Cc: 'Rebecca J. Walter'; [EMAIL PROTECTED] > > Subject: RE: [Gimp-user] transparency with png > > > > > > On Mon, 12 Mar 2001, Jason P. Holland wrote: > > > > > In IE 5.5, the background is light blue. In > > > netscape 4.76 on my linux box, its black. the graphic is at > > > http://jholland.nichware.net/alivepreview.html. > > > > Opera (for Linux, v5-beta6) gives a black background. > > > > -j > > > > -- > > Jeffrey Goldberg > > I have recently moved, see http://www.goldmark.org/jeff/contact.html > > Relativism is the triumph of authority over truth, convention > > over justice > > Opened in Netscape 4.61 under Linux. Using Plugger plugin for png files. It displays as black, too. Opened the graphic in GIMP and then saved with the "Save background color" unchecked: no difference. I suspect the plugin doesn't handle the transparency properly. Regards, Bill Lee ___ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
Re: [Gimp-user] transparency with png
On 3/12/2001 06:58, Jason P. Holland at [EMAIL PROTECTED] wrote: > Thanks for the quick response. In IE 5.5, the background is light blue. In > netscape 4.76 on my linux box, its black. the graphic is at > http://jholland.nichware.net/alivepreview.html. i have no clue. seems like > it would work. thanks for the help. It appears properly in MSIE 5.0 on the Mac. Netscape has a black background. I would hazard to guess that MSIE 5.5 on Winblows isn't fully alpha-png compatible just as suggested by Rebecca Walter. It must be supported in the browser for it to work. -- __ _ Carl B. Constantine / / (_)__ __ __[EMAIL PROTECTED] / /__/ / _ \/ // /\ \/ / (2.4.1)ICQ: 26351441 //_/_//_/\_ _/ /_/\_\ Stormix 2000 PGP key available on request Up the line - out the server- past the firewall - nothing but Net!! ___ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
RE: [Gimp-user] transparency with png
Thanks. Why would it behave this way? Does that have to do with the way the browser handles the png graphic format? And why is it not transparent? Anyone have a clue? i could use jpg, but i like the quality of png better. I appreciate all the help! Jason > -Original Message- > From: Jeffrey Goldberg [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 12, 2001 9:11 AM > To: Jason P. Holland > Cc: 'Rebecca J. Walter'; [EMAIL PROTECTED] > Subject: RE: [Gimp-user] transparency with png > > > On Mon, 12 Mar 2001, Jason P. Holland wrote: > > > In IE 5.5, the background is light blue. In > > netscape 4.76 on my linux box, its black. the graphic is at > > http://jholland.nichware.net/alivepreview.html. > > Opera (for Linux, v5-beta6) gives a black background. > > -j > > -- > Jeffrey Goldberg > I have recently moved, see http://www.goldmark.org/jeff/contact.html > Relativism is the triumph of authority over truth, convention > over justice > ___ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
RE: [Gimp-user] transparency with png
On Mon, 12 Mar 2001, Jason P. Holland wrote: > In IE 5.5, the background is light blue. In > netscape 4.76 on my linux box, its black. the graphic is at > http://jholland.nichware.net/alivepreview.html. Opera (for Linux, v5-beta6) gives a black background. -j -- Jeffrey Goldberg I have recently moved, see http://www.goldmark.org/jeff/contact.html Relativism is the triumph of authority over truth, convention over justice ___ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
RE: [Gimp-user] transparency with png
Thanks for the quick response. In IE 5.5, the background is light blue. In netscape 4.76 on my linux box, its black. the graphic is at http://jholland.nichware.net/alivepreview.html. i have no clue. seems like it would work. thanks for the help. Jason > > If you unchecked the save background, it should have been fine. Which > means your problem is probably not in GIMP but rather with using a > browser that isnt fully alpha-in-png compatible. If you have a link, > maybe some of us could take a look and see if it is fine in another > browser. ___ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
Re: [Gimp-user] transparency with png
If you unchecked the save background, it should have been fine. Which means your problem is probably not in GIMP but rather with using a browser that isnt fully alpha-in-png compatible. If you have a link, maybe some of us could take a look and see if it is fine in another browser. ___ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
[Gimp-user] transparency with png
hello all, i need a bit of help saving a png graphic with a transparent background. i have some a simple text graphic i want to use on a webpage, transparent in gimp of course. but when i go to save it, either it saves it with my background color, or an off blue color. i have seen the png option box come up when i go to save the graphic. i unselected 'save background color', thinking it would retain the transparent attribute. but when i check the graphic out in a web browser, its some off color, not even close to transparency. can anyone offer some help to a new user of gimp? this seems ridiculously simple, but i can't seem to get it to work. thanks! jason ___ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user