Article View: uk.net.web.authoring
Article #86Re: Making images transparent
From: Andy Mabbett
Date: Sat, 13 Apr 2002 12:02
Date: Sat, 13 Apr 2002 12:02
42 lines
2814 bytes
2814 bytes
In message <3cb8094b.821453@news.freeserve.net>, Martin Tanton
<martin@shadow.co.uk> writes
>The basic principal is that that when you save as a gif, the colours
>are reduced to a fixed number of your choosing. Any one of these can be
>chosen to be transparent.
Ah! The penny drops - thank you.
>The crucial point is that only one colour can be transparent, so you
>can't create gifs with smooth edges that will simply blend with any
>background colour. The colour to be 'knocked out' has to be pretty
>close to the colour of the background the gif will go over for the
>technique to be effective, otherwise you will get horrible jaggies
>round the image. Unless you're trying to blend the gif with a textured
>or patterned background I wouldn't bother. Just make sure the
>background colour of the gif and the background colour of your web page
>have the same rgb values.
well, I was thinking of "black & white" sketches and charts, like those
at:
<http://www.westmidlandbirdclub.com/research/bbcbbs/news-3b.htm>
(NB page still unfinished draft)
where the six smaller maps were originally like the largest.
I suppose I could simply "flood" the white in the originals with the
same background colour as used on the page, but if I ever change that,
or where users are not seeing the background colour, that would be
messy.
(I'd be happy to see how folks would make the large map transparent)
Incidentally, why does saving a 256-colour GIF as a 5-colour GIF
sometimes result in a larger file?
--
Andy Mabbett
<http://www.holmes2.org/HOLMES2/warning.html>
Technical Details
Message-ID:
<CUYL1Hd64Bu8Ewpe@pigsonthewing.org.uk>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!212.104.142.243!not-for-mailReferences:
<rcDBHNFZT$t8Ew0v@pigsonthewing.org.uk> <3cb8094b.821453@news.freeserve.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1025cc,7e4474ffd2bb2995 X-Google-Attributes: gid1025cc,public X-Google-Thread: 1036bc,7e4474ffd2bb2995 X-Google-Attributes: gid1036bc,public X-Google-Thread: f5cde,7e4474ffd2bb2995 X-Google-Attributes: gidf5cde,public X-Google-ArrivalTime: 2002-04-13 05:16:57 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!212.104.142.243!not-for-mail From: Andy Mabbett <andy@pigsonthewing.org.uk> Newsgroups: uk.net.web.authoring,uk.comp.os.win95,demon.tech.pc Subject: Re: Making images transparent Date: Sat, 13 Apr 2002 13:02:02 +0100 Organization: Copyright Andy Mabbett, date as above Lines: 42 Message-ID: <CUYL1Hd64Bu8Ewpe@pigsonthewing.org.uk> References: <rcDBHNFZT$t8Ew0v@pigsonthewing.org.uk> <3cb8094b.821453@news.freeserve.net> NNTP-Posting-Host: 212.104.142.243 Mime-Version: 1.0 Content-Type: text/plain;charset=us-ascii X-Trace: fu-berlin.de 1018699478 837510 212.104.142.243 (16 [60843]) X-Orig-Path: pigsonthewing.org.uk!andy User-Agent: Turnpike/6.01-U (<m0YxA4iAFHk2pYrnNTdm6O1N+W>)