mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Don't try to imagedestroy() FALSE
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344284 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
aa8396c551
commit
f3bdf92d3e
1 changed files with 1 additions and 1 deletions
|
@ -60,9 +60,9 @@ $size = min(imagesx($im), imagesy($im));
|
|||
$im2 = imagecrop($im, ['x' => 0, 'y' => 0, 'width' => $size, 'height' => $size]);
|
||||
if ($im2 !== FALSE) {
|
||||
imagepng($im2, 'example-cropped.png');
|
||||
imagedestroy($im2);
|
||||
}
|
||||
imagedestroy($im);
|
||||
imagedestroy($im2);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
Loading…
Reference in a new issue