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

Seal size #5

Open
tdyku opened this issue May 10, 2019 · 0 comments
Open

Seal size #5

tdyku opened this issue May 10, 2019 · 0 comments

Comments

@tdyku
Copy link

tdyku commented May 10, 2019

For now seal size depends on image height:

main = Image.open(main_fname)
main_w, main_h = main.size
...
ratio = 0.15
logo_h_new = int(ratio * main_h)

It's good-enough heuristics for square-like images, but makes seal too big when working with high and thin images (posters, UML diagrams, etc.)
It would be good if we could customize size depending on width or with fixed size.

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