public function getThumbnailEncoded()
    {
        if ($data = base64_decode($this->getThumbnail(), $strict = true)) {
            // In case we don't have the file info extension enabled,
            // we'll set the jpeg mime type as default.
            $mime = 'image/jpeg';

            $image = base64_encode($data);

            if (function_exists('finfo_open')) {
                $finfo = finfo_open();

                $mime = finfo_buffer($finfo, $data, FILEINFO_MIME_TYPE);

                return "data:$mime;base64,$image";
            }

            return "data:$mime;base64,$image";
        }
    }
public function getThumbnailEncoded()
    {
        if ($data = base64_decode($this->getThumbnail(), $strict = true)) {
            // In case we don't have the file info extension enabled,
            // we'll set the jpeg mime type as default.
            $mime = 'image/jpeg';

            $image = base64_encode($data);

            if (function_exists('finfo_open')) {
                $finfo = finfo_open();

                $mime = finfo_buffer($finfo, $data, FILEINFO_MIME_TYPE);

                return "data:$mime;base64,$image";
            }

            return "data:$mime;base64,$image";
        }
    }
public function getThumbnailEncoded ( ) { if ( $ data = base64_decode ( $ this -> getThumbnail ( ) , $ strict = true ) ) { // In case we don't have the file info extension enabled, // we'll set the jpeg mime type as default. $ mime = 'image/jpeg' ; $ image = base64_encode ( $ data ) ; if ( function_exists ( 'finfo_open' ) ) { $ finfo = finfo_open ( ) ; $ mime = finfo_buffer ( $ finfo , $ data , FILEINFO_MIME_TYPE ) ; return "data:$mime;base64,$image" ; } return "data:$mime;base64,$image" ; } }
Returns the users thumbnail photo base 64 encoded.

Suitable for inserting into an HTML image element.

@return string|null
Returns the users thumbnail photo base 64 encoded .