Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Can the embedded image be rectangular? #368

Open
@NonContradiction

Description

I love this library, but I've been trying to embed a rectangular image and can't figure out how to do so (or if it's possible). If I pass a path to a rectangular image file the qrcode will stretch the image so that it becomes a square but looks deformed; on the other hand, I've figured out how to add white space to my rectangular image so that the image itself appears like normal, but then there's white space that looks bad. I've seen the recent commit about the embeded_image_ratio parameter, but that doesn't change the image's own height/width ratio, and I can't find any Issues or Pull requests on this specific idea.

Is there a way to embed a rectangle so that a rectangle appears in the final qr image?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /