vad-naitik / php-image-helper
PHP Class to Image Crop or Resize and Display.
1.0.1
2024-05-15 10:16 UTC
Requires
- php: >=7.2.0
- ext-fileinfo: *
- ext-gd: *
Requires (Dev)
- ext-exif: *
- ext-gd: *
- apigen/apigen: ^4.1
- php-coveralls/php-coveralls: ^2.1
- phpunit/phpunit: ^8.5
Suggests
- ext-exif: Auto-rotate jpeg files
README
PHP library to resize, scale and crop images.
Setup
If using Composer, in your composer.json
file add:
{ "require": { "vad-naitik/PHP-Image-Helper": "1.0.*" } }
Otherwise:
include '/path/to/ImageHelper.php';
Because this class uses namespacing, when instantiating the object, you need to either use the fully qualified namespace:
$image = new \VadNaitik\ImageHelper();
Or alias it:
use \VadNaitik\ImageHelper; $image = new ImageHelper();
Note: This library uses GD class which do not support resizing animated gif files