Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Checks whether a constant with the given name exists
<?php defined(string $constant_name): bool
<?php         imagealphablending($this->image->getCore(), true);

        imagesavealpha($this->image->getCore(), true);

        imagewebp($this->image->getCore(), null, $this->quality);

        $this->image->mime = defined('IMAGETYPE_WEBP') ? image_type_to_mime_type(IMAGETYPE_WEBP) : 'image/webp';

        $buffer = ob_get_contents();

        ob_end_clean();

        
<?php         ob_start();

        imagebmp($this->image->getCore());

        $this->image->mime = defined('IMAGETYPE_BMP') ? image_type_to_mime_type(IMAGETYPE_BMP) : 'image/bmp';

        $buffer = ob_get_contents();

        ob_end_clean();

        
<?php             $core->setBackgroundColor(new \ImagickPixel('transparent'));

            $core->readImage($path);

            $core->setImageType(defined('\Imagick::IMGTYPE_TRUECOLORALPHA') ? \Imagick::IMGTYPE_TRUECOLORALPHA : \Imagick::IMGTYPE_TRUECOLORMATTE);



        } catch (\ImagickException $e) {

            throw new \Intervention\Image\Exception\NotReadableException(