<?php list($width, $height, $type, $attr) = getimagesize("imageurl"); if($width == 500 && $height == 180){ echo "no-image"; } ?>