I’ve been trying to implement
<?php
$path = "{image}";
list($width, $height) = getimagesize($path);
echo $height;
if($height > "350"){
echo "{<div class='image'>{exp:imgsizer:size src='{image}' width='575' height='350' alt='{title}' title='{title}' >}";
} else {
echo "{<div class='image'>{exp:imgsizer:size src='{image}' width='575' alt='{title}' title='{title}' >}";
}
?>but to no avail.
PHP is set to parse on input of the template and i get an error saying:
Warning: getimagesize(http://www.example.co.uk/images/example.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /core/core.functions.php(637) : eval()‘d code on line 27
line 27 is
list($width, $height) = getimagesize($path);