cytoscape / cytoscape-explore

Network visualization webapp.
MIT License
12 stars 4 forks source link

Export PNG image for publishing #110

Open mikekucera opened 2 years ago

mikekucera commented 2 years ago

Description of new feature

Motivation for new feature

So users can add a network image to their publication. PDF is especially useful because it allows the network to be further annotated in 3rd party software such as Illustrator.

maxkfranz commented 2 years ago

See https://js.cytoscape.org/#core/export

mikekucera commented 2 years ago

Is there a way to generate a PNG or any kind of thumbnail on the server in headless mode?

maxkfranz commented 2 years ago

Server: cytosnap

Client: cy.png()

If the user is just downloading the image, client-side image generation has some benefits over server-side image generation (speed, lower server usage, etc.).

On Dec 15, 2021, at 4:14 PM, Mike Kucera @.***> wrote:

Is there a way to generate a PNG or any kind of thumbnail on the server in headless mode?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cytoscape/cytoscape-explore/issues/110#issuecomment-995218728, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHRO46PVBTP3F36KQFQPX3UREAMJANCNFSM5JKR4IKQ.

mikekucera commented 2 years ago

Changed this issue to be just for PNG export. PDF/SVG export is now part of a larger discussion.

maxkfranz commented 2 years ago

Assuming requirement of 300 dpi figures within PDF papers of letter size (8.5” x 11”) :

That should work within the browser limitations for local image export size.

On Feb 22, 2022, at 14:40, Mike Kucera @.***> wrote:

Changed this issue to be just for PNG export. PDF/SVG export is now part of a larger discussion.

— Reply to this email directly, view it on GitHub https://github.com/cytoscape/cytoscape-explore/issues/110#issuecomment-1048146796, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHRO42XDCNQCKVPOZABFHLU4PRBBANCNFSM5JKR4IKQ. You are receiving this because you commented.