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

Blurry exported screenshots #226

Open
fedarko opened this issue Mar 21, 2022 · 1 comment
Open

Blurry exported screenshots #226

fedarko opened this issue Mar 21, 2022 · 1 comment
Labels
bug externalbug Bugs with other libraries/dependencies

Comments

@fedarko
Copy link
Member

fedarko commented Mar 21, 2022

Why do the nodes have labels in the screenshot, even if they don't in the interface? Also why do the screenshots look blurry?

Maybe I'm calling cy.png() wrong or something. See attached.

mgsc-2022-03-21T02_04_36

update: ok, so the labels thing is a known issue -- see #184. Not sure about the blurriness, tho.

@fedarko fedarko added bug externalbug Bugs with other libraries/dependencies labels Mar 21, 2022
@fedarko fedarko changed the title Better screenshots Blurry exported screenshots Mar 31, 2022
@fedarko
Copy link
Member Author

fedarko commented Mar 31, 2022

Looks like the blurriness can be somewhat fixed by bumping up the scale parameter used for the png export, although it looks like if the image gets big enough (e.g. if scale = 5, even for a relatively small graph) then Cytoscape.js will just silently output an empty image. Maybe just let the user specify the scale? hm.

also worth noting that bigger scale = bigger file = chonkier images

fedarko added a commit to fedarko/MetagenomeScope-1 that referenced this issue May 2, 2022
Ideally this is a user-exposed param! but for now this is ok
fedarko added a commit that referenced this issue May 2, 2022
Ideally this is a user-exposed param! but for now this is ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug externalbug Bugs with other libraries/dependencies
Projects
None yet
Development

No branches or pull requests

1 participant