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

Q: Source code for repository logo #52

Open
kakila opened this issue Jan 23, 2023 · 1 comment
Open

Q: Source code for repository logo #52

kakila opened this issue Jan 23, 2023 · 1 comment

Comments

@kakila
Copy link

kakila commented Jan 23, 2023

Hi,

Thanks for the package!
I was trying to recreate the image you use as the logo for the repository and haven't suceeded yet.
Is there source code showing how to generate it?

Thanks again

@RexWzh
Copy link
Member

RexWzh commented Jun 10, 2023

Hello @kakila . The code for generating QR codes was written last year, and I haven't been able to find it at the moment. However, you can find basic instructions in the README:

using TestImages, ColorTypes, ImageTransformations
using QRCoders
oriimg = testimage("cameraman")
code = QRCode("Hello world!", version=16, width=4)
img = imresize(oriimg, 66, 66) .|> Gray .|> round .|> Bool .|> !
imageinqrcode(code, img; rate=0.9) |> exportbitmat("qrcode-camera.png")

You can modify the image, size of the QR code, and other related information there. Additionally, please note that the project currently only supports embedding binary images. While it is simple to restore the original colors of the image, I plan on creating a function for this when I am available.

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

No branches or pull requests

2 participants