To add image_height & image_weight to the output should be as simple as changing
if ($image) $row['image'] = $image;
to
if ($image) {
list($width, $height) = getimagesize($image);
$row['image'] = $image;
$row['image_height'] = $height;
$row['image_width'] = $width;
}
Within
api_getMLA.php
api_getMP.php
api_getMSP.php
api_getPerson.php
I'm currently unable to test this on a local install, nor work out the
extra computational effort it would involve.
For those interested in the inner workings of getimagesize() -
http://php.net/manual/en/function.getimagesize.php
Would anyone be able to test before I spend weeks swearing at my
computer trying to get the codebase working? :-)
Terence
_______________________________________________
Mailing list [email protected]
Archive, settings, or unsubscribe:
https://secure.mysociety.org/admin/lists/mailman/listinfo/developers-public