FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Scaling image is losing background transparency
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Scaling image is losing background transparency [message #171697 is a reply to message #171695] Sun, 16 January 2011 12:11 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  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.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: having better solution to promote your products.
Next Topic: newbie: Zend or PEAR supported on web hosting company?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 00:02:11 GMT 2024

Total time taken to generate the page: 0.03984 seconds