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

Support for more formats, for example, SVG #47

Open
Tracked by #32
RexWzh opened this issue Nov 26, 2022 · 0 comments
Open
Tracked by #32

Support for more formats, for example, SVG #47

RexWzh opened this issue Nov 26, 2022 · 0 comments

Comments

@RexWzh
Copy link
Member

RexWzh commented Nov 26, 2022

An idea from discourse: Handle svg files by Luxor.jl.

using Luxor
filepath = "qrcode.svg"
qrc = qrcode("https:/www.julialang.org")
@svg begin
    tiles = Tiler(250, 250, size(qrc)..., margin=0)
    squares = first.(tiles)
    for x in eachindex(qrc)
        if qrc[x]
            box(squares[x], tiles.tilewidth, tiles.tileheight, :fill)
        end
    end
end 250 250 filepath
readsvg(filepath)

In practice, Thematic-QR-codes are generated as svg files, like Pac-Man QR codes. So it is important to add support of svg format.
pacman

If anyone is familiar with this area, I am very much looking forward to contributing together. 😃

@RexWzh RexWzh mentioned this issue Nov 26, 2022
6 tasks
@RexWzh RexWzh changed the title Support for more formats, for example, SVG and gif. Support for more formats, for example, SVG Nov 26, 2022
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

1 participant