descom/image-x

Image manipulation to web

0.1.0 2024-04-18 14:49 UTC

This package is auto-updated.

Last update: 2024-10-18 15:49:07 UTC


README

tests analyze style

Package to PHP to manipulate image to the web.

Install

Via Composer

composer require descom/image-x

Usage

use Descom\ImageX\ImageX;

return ImageX::from($filename)
    ->transform('w_200,h_200,bg_000000')
    ->auto() // Auto format to image; webp, jpg
    ->response(); // ->save($otherFilename);

Testing

composer test