-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Support padding in renderImg
#51
Conversation
renderImg
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey! Thanks for the PR, it lgtm but I left a minor comment with a minor improvement. After you change that little thing I will merge to develop and release 3.1.0 :)
src/QRgen/renderer.nim
Outdated
padding: uint8 = 5, | ||
img: Image = Image(width: 0, height: 0), | ||
imgCoords: tuple[x, y, w, h: uint8] = self.genDefaultCoords |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better if you made the new parameter the last one, so that backwards compatibility remains, although I actually like it more were you left it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense, moved it to the end.
Seems like I have to fix the GH actions haha (what did I expect after ~1.5y), I hope you can wait a bit, I will try to work on it tomorrow. |
Cool, thanks for taking it on so quickly. The workaround known as "copy paste" does the job for now 😅, so no there's rush from my side. |
Seems like it was just the version of the GH actions, I'm merging this directly to avoid the hassle of getting you to merge my develop onto your branch. |
Release 3.1.0 with this PR has been released! Although I no longer maintain this repo, PRs are always welcome :) |
Thanks again! I updated my deps and could now remove the copy pasta. Also 🙌 for keeping up the maintenance work! |
When adding QR code support to my own project, I had to tweak
renderImg
to support customizable amounts of padding around the code.