illuminage icon indicating copy to clipboard operation
illuminage copied to clipboard

Added a proportional scale method

Open terion-name opened this issue 10 years ago • 1 comments

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

terion-name avatar Jul 30 '13 18:07 terion-name

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.

Anahkiasen avatar Aug 20 '13 10:08 Anahkiasen