Re: Scaling image is losing background transparency [message #171697 is a reply to message #171695] |
Sun, 16 January 2011 12:11 |
The Natural Philosoph
Messages: 993 Registered: September 2010
Karma:
|
Senior Member |
|
|
Chuck Anderson wrote:
> The Natural Philosopher wrote:
>> Chuck Anderson wrote:
>>> The Natural Philosopher wrote:
>>>> Michael Fesser wrote:
>>>> > .oO(The Natural Philosopher)
>>>> >
>>>> >> I ended up using gif mind you because IE6 couldn't suss
>>>> >> tranaparent background PNG's. Lemme see if I have some code frags
>>>> >> somewhere.
>>>> >
>>>> > GIF is completely dead, there's not a single reason to use it anymore.
>>>> > And IE6 _can_ use even alpha-transparent PNGs if you want. Requires a
>>>> > little workaround, though. But who really uses IE6 anymore?
>>>> >
>>>>
>>>> I do because some people do :-)
>>>> And gifs are by and large smaller than pngs.
>>>>
>>>> So save bandwidth.
>>> But look at the difference in qulity:
>>> http://cycletourist.com/temp/watermark.php (two overlays at bottom of
>>> page).
>>>
>>> I did this to make on-the-fly watermark overlays, so I actually
>>> output a jpg at the end, but the png (vs gif) overlays are so much
>>> nicer.
>>>
>> That's not a function of the gif per se.
>>
>>
>
> Huh? That's exactly what it is. Can you make the transparency in a gif
> image look a good as the transparency in a 24 bit png file? I don't
> think so. 24 bit png with alpha channel transparency is beyond anything
> you can do with a gif file.
>
That all depends on what is in it: if you select the index values
carefully and its a monochrome, you get no worse results.
There is, after all the same variation in a single colour as is
available with 24 bit.
|
|
|