Painless PNG plugin

Plugin details

The Painless PNG plugin allows your Rails application to support PNG images with transparencies for Internet Explorer 5.5+ through 6.x without changing existing code.

Websitehttp://wheremydogs.at/articles/2007/04/30/the-rails-way-painless-png-in-ruby-on-rails Repositoryhttp://svn.wheremydogs.at/painless_png/tags/painless_png Tags png, ie, fix LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install http://svn.wheremydogs.at/painless_png/tags/painless_png

How does it work?
===================

The Painless PNG plugin monkey patches the image_tag method such that

* If the browser is Internet Explorer 5.5 or 6.x then it uses the AlphaImageLoader filter method prescribed by Microsoft
* For all other browsers it uses the default image_tag method from the Rails framework

This happens behind the scenes, transparently to your Rails application.


Sounds too good to be true, where’s the catch?
========================================

For HTML, there’s none. That is, provided you’ve been using the image_tag method to place your images rather than hand-coding tags.

The only exception is that the plugin won’t work for PNG images used in CSS stylesheets.

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | Back in time (1 older version) | Last edited by: scott, about 1 year ago