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

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

From: Spartanicus <mk98762@gmail.com>
Date: Wed, 25 Apr 2007 17:15:58 +0100
Message-ID: <n2m-g.43uu23hijochnlu21j8654h65la453j1fr@4ax.com>
To: www-style@w3.org

Bert Bos <bert@w3.org> wrote:

>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.

If this were to be considered again I'd consider not being able to use
jpegs as a serious drawback. True colour PNGs are usually required for
photo realistic content and they are not dial-up friendly. Instead of
using image transparency why not specify the colour to use to determine
the contour in the CSS:

img{float:left contour #fff}
img{float: left contour transparent}

If the implementation effort would be reasonable then I for one would
appreciate such a feature. Text following the contours of an image is
something regularly found in glossy magazines etc, I'd expect that it
would be used on the web fairly regularly if such a method was easily

I used my own method to create this effect years ago and it was too much
work to code. Consequently I haven't used it since.

Received on Wednesday, 25 April 2007 16:15:51 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:28 UTC