$picture = "lion.jpg"; $img = imagecreatefromjpeg($picture); print imagesx($img) . "\n"; print imagesy($img) . "\n";