Gregwar / Image

A PHP library to handle images
MIT License
1k stars 190 forks source link

Add ability to position resized image if background added #114

Open garygreen opened 8 years ago

garygreen commented 8 years ago

At the moment when you do ->resize() it will center the image around whitespace. We would like to have an option to position the image.

The position looks like it's determined here and it's always centered. Maybe could add support for percentage position of X, Y? That way you could position it to the top right, or bottom left, or 20% in from the left, etc.