Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Pointless PHP class to convert image to CSS box-shadow property.
PHP JavaScript
Tree: ba5b75cb70

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
PointlessImageToCssConverter.php
README.md
index.php
monalisa.jpg

README.md

Pointless Image To CSS box-shadow Converter

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...

Demo:

You can see a demonstration on CodePen.io.

http://codepen.io/jaysalvat/pen/HaqBf

Example:

include 'PointlessImageToCssConverter.php';

$img = new PointlessImageToCssConverter("monalisa.jpg");
$img->setWidth(200);
$img->setPixelSize(4);
$img->setBlur(4);

echo $img->computeStyle();

Note:

GD extension required.

http://www.php.net/manual/en/book.image.php

Something went wrong with that request. Please try again.