descom/image-x

Image manipulation to web

0.1.0 2024-04-18 14:49 UTC

This package is auto-updated.

Last update: 2024-12-03 09:03:17 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