Yenya's World

Mon, 29 Jan 2007

PNG Transparency (continued)

Well, the problem of PNG transparency was more complicated than I thought. Firstly, how does it work: the original approach tries to look up all the <img> tags in the document, and replace them by the following text:

<span ... style="width:XXXpx;height=YYYpx;filter:progid:
      DXImageTransform.Microsoft.AlphaImageLoader(src=
      'URL_TO_THE_IMAGE',sizingMethod='scale');">
</span>

There are problems with this approach, however:

After all, I have the PNG transparencey hack working, but the amount of dirty hacking needed to get it working is simply stunning.

Section: /computers (RSS feed) | Permanent link | 0 writebacks

0 replies for this story:

Reply to this story:

 
Name:
URL/Email: [http://... or mailto:you@wherever] (optional)
Title: (optional)
Comments:
Key image: key image (valid for an hour only)
Key value: (to verify you are not a bot)

About:

Yenya's World: Linux and beyond - Yenya's blog.

Links:

RSS feed

Jan "Yenya" Kasprzak

The main page of this blog

Categories:

Archive:

Blog roll:

alphabetically :-)