marbl/MetagenomeScope

Blurry exported screenshots

fedarko opened this issue · 1 comments

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.

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