sem-soft/image

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

Component for image resizing

Installs: 17

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/sem-soft/image

0.0.0 2016-10-25 13:02 UTC

This package is auto-updated.

Last update: 2025-10-07 09:06:14 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);?>" />