Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Encodes data with MIME base64
base64_encode(string $string): string
            return false;

        }



        return 
base64_encode(base64_decode($this->data)) === str_replace(["\n""\r"], ''$this->data);

    }
        return sprintf('data:%s;base64,%s',

            
$mime,

            
base64_encode($this->process($this->image$mime$this->quality))

        );

    }