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

Add logo support to QR API #1301

Closed
steven-tey opened this issue Oct 1, 2024 · 20 comments
Closed

Add logo support to QR API #1301

steven-tey opened this issue Oct 1, 2024 · 20 comments

Comments

@steven-tey
Copy link
Collaborator

I've started adding this via #1279 but am currently blocked by vercel/satori#592 (though I do think there should be a workaround)

If you can figure out the bug and get this working, you'd win 750 points since this is one of the long-standing bugs that we've been facing 😅

Copy link

linear bot commented Oct 1, 2024

@RajuGangitla
Copy link
Contributor

/assign

Copy link

oss-gg bot commented Oct 1, 2024

Assigned to @RajuGangitla! Please open a draft PR linking this issue within 48h ⚠️ If we can't detect a PR from you linking this issue in 48h, you'll be unassigned automatically 🕹️ Excited to have you ship this 🚀

@RajuGangitla
Copy link
Contributor

@steven-tey can i get more details about this issue ?

@steven-tey
Copy link
Collaborator Author

@RajuGangitla feel free to piggyback off the PR that I started – we basically want to add the ability to pass a custom logo to our QR code API. Currently it doesn't work for some reason, as detailed in vercel/satori#592. Would love for you to figure it out!

@CntrlX
Copy link

CntrlX commented Oct 2, 2024

can i work on it?

@unrenamed
Copy link
Contributor

@steven-tey Have you considered converting the SVG to a PNG or JPG file before passing it to ImageResponse? I mean if SVG is not a strict requirement for the return type, then this may be a viable option.

@saiyalamarty
Copy link

saiyalamarty commented Oct 3, 2024

Tried a workaround on mobile, and img tag with src seems to work instead of image and href. Away on vacation and laptop, so can't submit a PR. Someone else can verify and implement.

Link to playground.

@steven-tey
Copy link
Collaborator Author

@saiyalamarty that looks really promising – anyone want to take this one up? Feel free to copy the implementation in my PR #1279 but adjust it to use @saiyalamarty's suggestion to see if it works 👀

@steven-tey
Copy link
Collaborator Author

@RajuGangitla are you still working on this?

@DeepaPrasanna
Copy link

May I have a try if no one's working?

@RajuGangitla RajuGangitla removed their assignment Oct 4, 2024
@RajuGangitla
Copy link
Contributor

@steven-tey let me try the @saiyalamarty solution and if i am not able to solve this issue by today night
i will unassing myself

@RajuGangitla
Copy link
Contributor

/assign

Copy link

oss-gg bot commented Oct 4, 2024

Assigned to @RajuGangitla! Please open a draft PR linking this issue within 48h ⚠️ If we can't detect a PR from you linking this issue in 48h, you'll be unassigned automatically 🕹️ Excited to have you ship this 🚀

@BharathxD
Copy link
Contributor

BharathxD commented Oct 4, 2024

/assign 😬

Copy link

oss-gg bot commented Oct 4, 2024

This issue is already assigned to another person. Please find more issues here.

@RajuGangitla RajuGangitla removed their assignment Oct 4, 2024
@RajuGangitla
Copy link
Contributor

@BharathxD you can assign yourself now

@BharathxD
Copy link
Contributor

/assign

Copy link

oss-gg bot commented Oct 4, 2024

Assigned to @BharathxD! Please open a draft PR linking this issue within 48h ⚠️ If we can't detect a PR from you linking this issue in 48h, you'll be unassigned automatically 🕹️ Excited to have you ship this 🚀

@steven-tey
Copy link
Collaborator Author

This has been fixed 🤯 kudos to @BharathxD for the PR and @saiyalamarty for the pro-tip 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants