cytoscape / cytosnap

A Node.js package that renders images of Cytoscape.js graphs on the server using Puppeteer
MIT License
58 stars 11 forks source link

Some node labels appear blurry (low quality) #29

Open dataexcess opened 2 months ago

dataexcess commented 2 months ago

Hi there,

I am having issues that certain labels only have lower rendered quality than other labels. The selection of labels seem random...

here's an example: https://yvxeccunoeyjlmbhtexv.supabase.co/storage/v1/object/public/graph_snapshots/graph.jpg

this is my cytosnap code:

const renderSnapshotImage = async (graphData) => {
    const snap = cytosnap()
    await snap.start()

    const img = await snap.shot({
        elements: graphData.elements,
        layout: graphData.layout,
        style: graphData.style,
        resolvesTo: 'base64',
        format: 'png',
        width: 2000,
        height: 2000,
        background: 'rgb(255,248,240)'
    })

    const buff = Buffer.from(img, 'base64')
    return buff
}
maxkfranz commented 2 weeks ago

The image link is dead