Giter Club home page Giter Club logo

Comments (3)

tobast avatar tobast commented on June 26, 2024 4

I just stumbled upon PR #41 and the --svg-path option, which indeed solves the issue above, and looks like the right thing to do indeed.

Maybe putting the option a bit more forward somehow, or enabling it by default, would be nice?

Thank you!

from libqrencode.

peter-scholtens avatar peter-scholtens commented on June 26, 2024

Instead, I would suggest to specify --svg-no-path as a command line option and let the default behavior to create it using paths when SVG is selected. I couldn't think of a use-case where it is useful, having no paths, but if some users want it, then they can still have it.

from libqrencode.

JonathanAlcaraz avatar JonathanAlcaraz commented on June 26, 2024

I found this thread because I was also having this issue too. While --svg-path fixed the problem in my image viewer (Gnome) and inkscape, the issue still comes up for me in LibreOffice Draw and the PDFs it generates.

If I run qrencode -o test.svg -t SVG --svg-path 'hello world', I get this in my image viewer:
Screenshot from 2024-03-20 20-08-35

However, the gaps come back when I embed that image into LibreOffice Draw:
Screenshot from 2024-03-20 19-49-49

And they persist when I export the document as a PDF:
Screenshot from 2024-03-20 19-50-56

Maybe this is a LibreOffice issue—the link you shared to the old inkscape issue makes it clear that rendering cases like this is non-trivial. I just thought I'd share my experience since it doesn't seem this issue is fully solved.

from libqrencode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.