Re: proposal: background-image-alpha

On Tue, 09 May 2006 03:52:29 +0300, Andrew Fedoniouk  
<news@terrainformatica.com> wrote:


> |
> | On Mon, 08 May 2006 09:09:52 +0300, Andrew Fedoniouk
> | <news@terrainformatica.com> wrote:
> |
> | >
> | > Hi, Emrah,
> |
> | Thanks for taking your time to criticise.
>
> I am not critisizing strictly speaking.
> I am just trying to better understand idea / motivations.

I meant critisize as a general evaluation, not necessarily in a negative  
way.

**snip
> | I don't believe the only option would be PNG/PNG. PNG is suitable for
> | certain types of images (straight gradients, typography, logos), while  
> JPG
> | is for others, (photographs, images with natural transitions), so a
> | JPG/PNG,
> | a JPG/GIF combo could only benefit designers. A simple example that  
> does
> | not do justice to the proposal would be a photo fading into background
> | color with a simple PNG gradient.
>
> I see your point here. But fading is just one case.
>
> This effect (well, not exactly) could be achieved by:
> <img src="photo.jpg" style="background-image:url(photo.jpg);
> foreground-image:url(frame.png)" />
>
> Again this is not exactly as you want but close.

This is not what I'd want. I don't want the content to be obscured by the  
frame, I could use text (content) on such a faded background, and I am  
defining it as a style, not a content image, separate from contents. And  
also that's just one little example of what can be done, like I said, a  
small pattern could be used to define background alpha while we use a big  
image for its color values, we could use the alpha to cut out images  
giving it semi transparency in some places, we could use different alphas  
right in the style sheet to change whatever style effect we are aiming.  I  
basically am proposing the manipulation of background-alpha separate from  
background-image, allowing all kinds of mixing and matching, without using  
extra markup in html.

>
> Another approach: to use server side image processing or to use <img
> src="framed-photo.svg" /> if it
> would be possible.

Again, it was just one example, the examples could be vastly varied, like  
the advantages section in the proposal. I gave that example as gradient  
PNG's are very small in size, and jpegs are really good for photo  
compression, and it would be bad if we had to give the effect right in  
PNG, or use extra markup within our content document not still being able  
to give the same effect at all or all the vast possibilities a  
background-image-alpha with repeatable, positionable alpha image separate  
 from the background-image.

I hope I could be more clear about the effects possible with the proposal.

>
> Andrew Fedoniouk.
> http://terrainformatica.com
>

Yours,
Emrah BASKAYA
www.hesido.com

Received on Tuesday, 9 May 2006 06:15:25 UTC