Open brandonlim-hs opened 4 years ago
I can make a PR for this, but I'm not sure how to handle the result of EpsImageBackEnd.
I tried image/x-eps and image/eps as MIME type, but it doesn't show the image...
It seems like EPS file is not a standard web image format, and thus browsers are not able to display it by default. https://stackoverflow.com/questions/53612752/google-chrome-cant-display-a-eps-file https://stackoverflow.com/questions/47167033/how-to-preview-eps-file-in-html-page
May need to convert EPS file to other standard web image formats (SVG, PNG, etc) to display it inline
pragmarx/google2fa-laravel config mentioned support for
imagemagick
,svg
andeps
options for generating QR codes.With
ImagickImageBackEnd
, the image is base64 encoded. However, withsvg
oreps
, the image is not base64 encoded.Suggestion: base64 encode
SvgImageBackEnd
andEpsImageBackEnd
too, so that the returned data is consistent for all supported image renderers?