illuminage
illuminage copied to clipboard
Added a proportional scale method
Illuminage::fit($photo, $w, $h)
will resize image proportional to fit given bounding box. This will not upscale image, if it is smaller than bounding box.
With optional 4th param:
Illuminage::fit($photo, $w, $h, true)
it will upscale the image
You should do a composer update
to update the librarie's dependencies first – there were some changes upstream in the Imagine library and I think some of the buggy behaviors of thumbnail that Illuminage fixed were changed, so this may be in the lot too.