sem-soft/image

There is no license information available for the latest version (0.0.0) of this package.

Component for image resizing

0.0.0 2016-10-25 13:02 UTC

This package is auto-updated.

Last update: 2024-11-07 07:17:50 UTC


README

Install by composer

composer require sem-soft/image

Or add this code into require section of your composer.json and then call composer update in console

"sem-soft/image": "*"

Usage

<?php
require './vendor/autoload.php';


$imager = new Sem\Image\Imager();

$imager->load('https://pp.vk.me/c626226/v626226456/2eb76/NT9Jhk2sJjo.jpg');
$imager->resizeToWidth(100);

?>
<img src="<?= $imager->base64(IMAGETYPE_PNG);?>" />