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

        }



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

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

            $mime,

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

        );

    }