![]() |
Centering the x and y ratio in images
I want to be able to figure out how to center images, by their x, y ratios using imagecopyresampled. How would I do this?
|
One way you can find the center point of an image is to find the width and height and divide by 2
PHP Code:
You can always look at something like this PHP Code:
|
There you have it, from the resident GD guru himself! x
|
Lol :-) Rendair loves his GD, doesn't he.
|
$_GET['w'] and $_GET['h'] are defined xD
plus my images are from db |
| All times are GMT. The time now is 11:15 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0