Download the PHP package lightboxdigital/wp-dynamic-image-resizer without Composer
On this page you can find all versions of the php package lightboxdigital/wp-dynamic-image-resizer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lightboxdigital/wp-dynamic-image-resizer
More information about lightboxdigital/wp-dynamic-image-resizer
Files in lightboxdigital/wp-dynamic-image-resizer
Package wp-dynamic-image-resizer
Short Description Resize WordPress images on the fly without needing to register image sizes.
License MIT
Informations about the package wp-dynamic-image-resizer
WordPress Dynamic Image Resizer
License: MIT License URI: https://opensource.org/licenses/MIT
Resize WordPress images on the fly without needing to register image sizes. This
library allows you to request image sizes using already familiar functions such as wp_get_attachment_image_src
.
Instead of passing a named image size you can now pass an array containing width, height and crop like:
The image will then be generated if it doesn't already exist, and the function will return values as normal.
Please be aware that currently this code does not support responsive images.
Whilst this is developed as a plugin, it can just as easily be used through composer. The dual development approach meant that ongoing dev was more straight forward in terms of unit tests etc.
Thanks & Credits
Tom McFarlin and Devin Vinson for their work on WordPress Plugin Boilerplate Generator.
Thanks to Tim Kinnane and Dalton Rooney for their work on the initial resizer code.
Installation
Install to your theme using composer: composer require lightboxdigital/wp-dynamic-image-resizer
.
Alternatively install as a plugin:
- Upload
dynamic-image-resizer
to the/wp-content/plugins/
directory - Activate the plugin through the 'Plugins' menu in WordPress
Changelog
1.0.2
- Fix where composer wouldn't actually autoload the necessary file
1.0.1
- Readme markup issues resolved
1.0
- Completely refactored on top of WPDB.
- Added unit tests.
- Added PHPCS ruleset.