Download the PHP package roelvanduijnhoven/reverse-image-cover without Composer
On this page you can find all versions of the php package roelvanduijnhoven/reverse-image-cover. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download roelvanduijnhoven/reverse-image-cover
More information about roelvanduijnhoven/reverse-image-cover
Files in roelvanduijnhoven/reverse-image-cover
Download roelvanduijnhoven/reverse-image-cover
More information about roelvanduijnhoven/reverse-image-cover
Files in roelvanduijnhoven/reverse-image-cover
Vendor roelvanduijnhoven
Package reverse-image-cover
Short Description Compute visible part of source image when covered in viewport
License MIT
Package reverse-image-cover
Short Description Compute visible part of source image when covered in viewport
License MIT
Please rate this library. Is it a good library?
Informations about the package reverse-image-cover
Reverse Image Cover
Small library that can compute the part of the source image that is shown when it is being projected onto an element as background.
Can be used for example to reduce bandwidth by preprocessing the image so that only the crop is returned. The end result will be identical to the viewer.
Currently only supports backgrounds that cover the image and use percentages to position the image.
Usage
Tests
Tests can be ran by:
composer installvendor/bin/phpunit
The test suite can be visualized as follows:
- Run server
php -S localhost:8080 - Visit http://localhost:8080/tests/demo.php`
All versions of reverse-image-cover with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4
The package roelvanduijnhoven/reverse-image-cover contains the following files
Loading the files please wait ...