io-developer/php-imagetransform

Library provides image trasformation via GD or other implemented handlers

1.0.0 2017-11-13 10:10 UTC

This package is not auto-updated.

Last update: 2024-10-27 04:18:14 UTC


README

PHP library for easy image resizing and cropping

Requirements

PHP >= 5.4

  • gd

Example

<?php

use iodev\Lib\ImageTransform\ImageTransformFactory;

ImageTransformFactory::create()
    ->inputFile("source.jpg")
    ->cropOuter(1280, 720)
    ->reduce(200, 200)
    ->exportFileWithInputFormat("output.jpg");