I have an image with the following dimensions:
width: 217
height: 122
I got these dimensions using the following:
<?php
$filename = 'test.png';
list($width, $height) = getimagesize($filename);
// width and height now avaliable in these variables
$width;
$height;
?>
Using php how can I get the offset (offset x and offset y) of the image from the center?
Try something like this:
This basically tells you half the width and height of the image.