Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firefox incompatibility #160

Open
TristanWYL opened this issue Dec 21, 2022 · 3 comments
Open

Firefox incompatibility #160

TristanWYL opened this issue Dec 21, 2022 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@TristanWYL
Copy link

Sometimes the icon if off, but with the same options, some other icons could show normally in the center:

Screenshot 2022-12-21 at 3 32 52 PM

@ChaoticSystem
Copy link

enable cors

@artemik
Copy link

artemik commented Sep 4, 2024

Any update? Chrome shows fine, Firefox is broken.

Reproduction.

Took options from qr-code-styling example from here (https://www.npmjs.com/package/qr-code-styling) and changed the image with another one (a Telegram logo base64 svg):

{
        width: 300,
        height: 300,
        type: "svg",
        data: "https://www.facebook.com/",
        image: "data:image/svg+xml;base64,PHN2ZyBpZD0iTGl2ZWxsb18xIiBkYXRhLW5hbWU9IkxpdmVsbG8gMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmlld0JveD0iMCAwIDI0MCAyNDAiPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0ibGluZWFyLWdyYWRpZW50IiB4MT0iMTIwIiB5MT0iMjQwIiB4Mj0iMTIwIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjMWQ5M2QyIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMzhiMGUzIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHRpdGxlPlRlbGVncmFtX2xvZ288L3RpdGxlPjxjaXJjbGUgY3g9IjEyMCIgY3k9IjEyMCIgcj0iMTIwIiBmaWxsPSJ1cmwoI2xpbmV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wLjE3OFoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=",
        dotsOptions: {
            color: "#4267b2",
            type: "rounded"
        },
        backgroundOptions: {
            color: "#e9ebee",
        },
        imageOptions: {
            crossOrigin: "anonymous",
            margin: 20
        }
    }

See how Chrome shows it correctly in the center. In Firefox it's off.
image
image

@coList
Copy link

coList commented Oct 1, 2024

If anyone else is still having trouble with the positioning in Firefox, switching the logo from SVG to PNG resolved the issue for me.

@kozakdenys kozakdenys added the help wanted Extra attention is needed label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants