asmx/cropper

crop images, resize ond fit to size

dev-master 2019-12-17 09:22 UTC

This package is auto-updated.

Last update: 2025-03-12 06:06:54 UTC


README

Create an image of the desired size with the original ratio and the size to fill the fields with the main color in the image

Installation

composer require asmx/cropper

Usage

use Asmx\Cropper\Cropper;

$cropper = new Cropper();

    $cropper->
    from('input_path_file')->
    to('output_path_file')->
    size([600,200])->
    fit();