Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Pointless PHP class to convert image to CSS box-shadow property.

Notifications You must be signed in to change notification settings

mswlive/image2css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

12 Commits

Repository files navigation

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

About

Pointless PHP class to convert image to CSS box-shadow property.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /