Skip to content

Added a proportional scale method#8

Open
terion-name wants to merge 10 commits intoAnahkiasen:masterfrom
terion-name:master
Open

Added a proportional scale method#8
terion-name wants to merge 10 commits intoAnahkiasen:masterfrom
terion-name:master

Conversation

@terion-name
Copy link
Copy Markdown

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

@Anahkiasen
Copy link
Copy Markdown
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants