vad-naitik/php-image-helper

PHP Class to Image Crop or Resize and Display.

1.0.1 2024-05-15 10:16 UTC

This package is auto-updated.

Last update: 2025-04-04 13:18:57 UTC


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