tomk/imagehelper

Class to help with image manipulation

0.1.0 2015-01-28 18:50 UTC

This package is auto-updated.

Last update: 2024-12-19 10:51:51 UTC


README

Help with loading and resizing images (including ICO icons) from strings and returning image resources for use with the gd library.

Supports alpha transparency and upscaling

Other useful methods to follow.

Usage

$data = file_get_contents('image.file');
$imageHelper = new ImageHelper($data);
$resized = $imageHelper->resize(256, 256, true);
imagepng($resized);