This example uses code originally posted at http://php.net/manual/en/function.imagettfbbox.php#75407. This was suggested by comment on StackOverflow.




View source
Image size:
Array
(
    [0] => 25
    [1] => 4
    [2] => 361
    [3] => 4
    [4] => 361
    [5] => -126
    [6] => 25
    [7] => -126
    [x] => -26
    [width] => 336
    [y] => 125
    [height] => 129
)