Download the PHP package digitalzenworks/php-image-optimizer without Composer
On this page you can find all versions of the php package digitalzenworks/php-image-optimizer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download digitalzenworks/php-image-optimizer
More information about digitalzenworks/php-image-optimizer
Files in digitalzenworks/php-image-optimizer
Package php-image-optimizer
Short Description A responsive image workflow for optimizing and resizing your images
License MIT
Homepage https://github.com/jamesjohnmcguire/PhpImageOptimizer/
Informations about the package php-image-optimizer
PhpImageOptimizer
A responsive image workflow for optimizing and resizing your images. Details can be found in the excellent article at Efficient Image Resizing With ImageMagick
Originally based off (forked) https://github.com/nwtn/php-respimg
Requirements/dependencies
- PHP >= 7.1.0
- ImageMagick
- Optional: For optimization, depending on what settings you pass:
Installation
Git
git clone https://github.com/jamesjohnmcguire/PhpImageOptimizer
Composer
composer require https://packagist.org/packages/digitalzenworks/php-image-optimizer
Examples
To resize one raster image, without optimization:
To resize one raster image and maintain aspect ratio, without optimization:
To resize one raster image and maintain aspect ratio, with optimization:
To resize a directory of raster images and maintain aspect ratio, with optimization:
To resize a directory of raster images and SVGs and maintain aspect ratio, with optimization:
Contributing
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE
for more information.
Contact
James John McGuire - @jamesmc - [email protected]
Project Link: https://github.com/jamesjohnmcguire/PhpImageOptimizer