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

SVG support #7

Open
evgeni opened this issue Feb 8, 2016 · 3 comments
Open

SVG support #7

evgeni opened this issue Feb 8, 2016 · 3 comments

Comments

@evgeni
Copy link
Owner

evgeni commented Feb 8, 2016

Via mail:

An SVG support would be a nice feature, so that a resize of the picture is easy to do.

@dislick
Copy link

dislick commented Nov 28, 2017

I initially thought I needed SVG support as well (for printing the QR codes). However you can easily upscale the PNG in Photoshop and it will not look pixelated if done correctly.

In Photoshop:

  • Go to Image -> Image Size
  • Enter your desired resolution
  • Make sure you set Resample to Nearest Neighbor (hard edges)

Still, SVG support would be nice to have.

@dmyers
Copy link

dmyers commented Jul 12, 2018

Also if you use the resize tool (cmd + t on mac) enlarge, you can choose Nearest Neighbor on the Interpolation option before committing.

@BrainStone
Copy link
Contributor

BrainStone commented Mar 5, 2019

Most image editing software supports some kind of "Nearest Neighbor", "Hard Edges" or "Pixelated" interpolation, so that should work. Though I agree. Having the image as an SVG would be pretty useful, as the size should be relatively small compared to to PNG, especially at higher resolutions.

To reduce the filesize of the png file you can use opting.
As there really is not much data, some suprisingly low compressing settings may reduce the best result. And since the file is really small, doing an exhaustive search is no big deal, so use this command to absolutely minimize the file (reduced from 4356B to 633B (85.47% reduction) for me): optipng -zm1-9 -zc1-9 -zs0-3 -f0-5 -strip all -- qr_code.png
So I take the size argument back.

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

4 participants