Skip to content

Instantly share code, notes, and snippets.

View snwfdhmp's full-sized avatar

Martin snwfdhmp

View GitHub Profile
@snwfdhmp
snwfdhmp / ImageManipulator.php
Created May 6, 2017 12:09
Image manipulation class, provides cropping, resampling and canvas resize
<?php
class ImageManipulator
{
/**
* @var int
*/
protected $width;
/**
* @var int