joseluisq/gimage

Load an image resource directly

joseluisq opened this issue · 1 comments

Example:

use GImage\Image;

$resource = imagecreatefrompng('/large.png');

$img = new Image();
$img
  ->load($resource)
  ->scale(0.5)
  ->save('/thumbnail.png');

Refs: #28