Posted by dorayme on 12/16/05 01:39
> From: "NEWS" <antispam@nospam.com>
> Is there any way to make the background of an image be transparent in a jpg?
> I have been trying to do this all day and no matter what I do it shows on my
> page as white.
>
> If I cannot use a jpg which file type can I use?
>
>
If you want to use a jpg, I often do, make the background of the
jpg itself the same colour as the body of the html (or vice
versa of course). Depends on the pic, how successful you are. If
you make it up say from a psd in layers, then just ensure the
bottom bg layer is a colour you want the body to be too...
before flattening and jpging... This is "fake transparency"
The white that is showing is - apart from other things -
because you have not prepared the bg to the pic, it defaults to
white. There is no real transparency in jpg...
GIF is a format to use for transparency (also PNG but there are
conditions...)
--
dorayme
[Back to original message]
|