Skip to content
Pointless PHP class to convert image to CSS box-shadow property.
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
example Composer friendly Jul 18, 2014
src/Image2Css Fix Exception and replace it by InvalidArgumentException Jul 18, 2014
.gitignore Gulpfile to release Jul 20, 2014 Add fancy badges to README Jul 23, 2014
composer.json Release v1.0.2 Jul 20, 2014
gulpfile.js Gulpfile to release Jul 20, 2014
package.json Release v1.0.2 Jul 20, 2014

Pointless Image To CSS Converter

Latest Stable Version License

You suck at CSS but want to impress your friends anyway? This PHP class converts an image to thousands of CSS lines of box-shadow properties. It's totally pointless... but life is pointless...


You can see a demonstration on


Create a composer.json file with:

   "require": {
       "jaysalvat/image2css": "~1.0"

And run Composer to install Image2Css.

$ curl -sS | php
$ composer.phar install


$img = new \Image2Css\Converter("monalisa.jpg");

echo $img->computeStyle();


GD extension required.

You can’t perform that action at this time.