W3C home > Mailing lists > Public > www-style@w3.org > April 2007

Re: [Fwd: Re: non-rectangular images & <img> tag]

From: Bert Bos <bert@w3.org>
Date: Wed, 25 Apr 2007 17:07:50 +0200
Cc: W3C CSS <www-style@w3.org>
To: Undisclosed.Recipients: ;
Message-Id: <200704251707.50173.bert@w3.org>

On Wednesday 25 April 2007 15:09, Paul Nelson (ATC) wrote:
> Could an image map possibly be used to define the outline of the area
> to flow around?

The last serious discussion about it was in 1996... Using a language of 
circles and polygons was considered, as well as using a separate image 
as a mask, but the simplest solution seemed to be to just use one image 
and make it transparent in the right places. But even that seemed too 
much for browsers at the time and it has been postponed ever since.

I still think that that simple solution is the best. Separating the 
contour from the image seems overkill. Just load the image into a 
paint/graphics program, cut out the contour and make sure the 
transparency is no more than 99% everywhere else. It means the method 
is image-format specific, it won't work with JPEG, e.g., but if it 
works with PNG and SVG, that should be enough.



Bert
-- 
  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos                               W3C/ERCIM
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France
Received on Wednesday, 25 April 2007 15:07:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:50 GMT