imagedestroy

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Destroy an image
<?php imagedestroy(GdImage $image): bool
<?php     public function execute($image)

    {


        imagedestroy($image->getCore());




        foreach ($image->getBackups() as $backup) {
<?php         foreach ($image->getBackups() as $backup) {

            imagedestroy($backup);

        }



        return true;
<?php             $image->setCore($base);

            imagedestroy($resource);



        } else {
<?php             imagefilledrectangle($resource, 0, 0, $width - 1, $height - 1, $filling);

        }



        isset($tile) ? imagedestroy($tile->getCore()) : null;



        return true;

    }
<?php         if (is_resource($backup = $image->getBackup($backupName))) {




            imagedestroy($image->getCore());




            $backup = $image->getDriver()->cloneCore($backup);
<?php         imagecopy($canvas, $resource, 0, 0, 0, 0, $width, $height);

        imagedestroy($resource);



        $resource = $canvas;