Download the PHP package teddy/imgtodataurl without Composer
On this page you can find all versions of the php package teddy/imgtodataurl. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download teddy/imgtodataurl
More information about teddy/imgtodataurl
Files in teddy/imgtodataurl
Download teddy/imgtodataurl
More information about teddy/imgtodataurl
Files in teddy/imgtodataurl
Vendor teddy
Package imgtodataurl
Short Description Converts images in .css to DataUrl
License MIT BSD-3-Clause GPL-2.0 GPL-3.0
Package imgtodataurl
Short Description Converts images in .css to DataUrl
License MIT BSD-3-Clause GPL-2.0 GPL-3.0
Please rate this library. Is it a good library?
Informations about the package imgtodataurl
ImgToDataUrl
Converts images in CSS to DataUrl
Usage
Default public directory is set to $_SERVER['DOCUMENT_ROOT']
You may specify your own with new Teddy\ImgToDataUrl($file, __DIR__ . '/www');
There are two ways to pass CSS to ImgToDataUrl
Either you pass \splFileInfo
with setCssFromFile($file)
or a string with setCss($css)
.
The first one is better because it keeps information about relative paths
For example with structure
and
The first one will look into correct path www/css/images/01.png
but the second to www/images/01.png
All versions of imgtodataurl with dependencies
PHP Build Version
Package Version
No informations.
The package teddy/imgtodataurl contains the following files
Loading the files please wait ....