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

Improve brand image quality #10

Open
waldoj opened this issue Nov 18, 2014 · 3 comments
Open

Improve brand image quality #10

waldoj opened this issue Nov 18, 2014 · 3 comments

Comments

@waldoj
Copy link
Member

waldoj commented Nov 18, 2014

Because the brand images are provided at such low quality, they look terrible when increased to any reasonable size.

I think the solution is to upscale them, blur them, and then use some equivalent to Photoshop's "Threshold" to decrease the fall-off distance of the edges. Then those can be converted to SVGs, too.

@waldoj
Copy link
Member Author

waldoj commented Sep 29, 2015

This (using GraphicsMagick) is promising:

gm convert -resize 250 -gravity center -extent 300x300 -blur 100x5 -threshold 50% -threshold 60%

@waldoj
Copy link
Member Author

waldoj commented Sep 29, 2015

That works well on every image except those that have fine details, like

80

and

87

I think I should just mogrify all of these images, then go through and re-do any with fine details, tweaking the settings a bit.

@waldoj
Copy link
Member Author

waldoj commented Sep 29, 2015

Here, I integrate potrace per this blog entry:

gm convert -resize 250 -gravity center -extent 300x300 -blur 100x5 -threshold 65% input.png pgm:- |mkbitmap -f 32 -t 0.4 - -o - |potrace --svg -o output.svg

That works pretty well.

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

No branches or pull requests

1 participant