Experimental project

This is a sandbox project, which contains experimental code for developer use only.

Dynamically generates 1x1 pixel semi-transparent PNG images for browsers that don't support RGBa. Just point your CSS at /path/to/public-files-directory/rgbapng/HEXCODE.png and an image will be returned. If the image already exists it won't be regenerated.

Example

body {
  background: url(/sites/default/files/rgbapng/00abc83f.png);
  background: rgba(0, 171, 200, 0.5);
}

Sass/Compass

I'm working on integration with the Sassy module to provide a replacement for compass-rgbapng ruby gem. Stay tuned.

Project information