diff --git a/reference/image/functions/imagecreatefromxpm.xml b/reference/image/functions/imagecreatefromxpm.xml index fa512a6630..6619670dac 100644 --- a/reference/image/functions/imagecreatefromxpm.xml +++ b/reference/image/functions/imagecreatefromxpm.xml @@ -60,8 +60,8 @@ $xpm = imagecreatefromxpm('./example.xpm'); // PHP has no support for writing xpm images // so in this case we save the image as a // jpeg file with 100% quality -imagejpeg($im, './example.jpg', 100); -imagedestroy($im); +imagejpeg($xpm, './example.jpg', 100); +imagedestroy($xpm); ?> ]]>