I have one currently that simple does it by aspect ratio, however I need it to fill a 150 x 150 size, whereas mine would honour its ratio and do 150 x 120 for example.
Ideally it would goto the centre of the image.
Thanks
I have one currently that simple does it by aspect ratio, however I need it to fill a 150 x 150 size, whereas mine would honour its ratio and do 150 x 120 for example.
Ideally it would goto the centre of the image.
Thanks
i recommended about this simple class , you can resize / crop / flip ....
link :
There's a php library for image manipulation called GD - http://php.net/manual/en/book.image.php You could give it a look
While I think haim's offered link is very good to use, you may want to consider using ImageMagick, which is a multi-language-supported software that I personally believe many hosting companies have. I think it's a more efficient way of implementing what you're looking for, rather than resizing/cropping with GD library.
Take a look at this built function. It also allows caching, and copying remote images to your server.