How to make exported png with high resolution? #3164
Answered
by
zbynekstara
HuiHMegumin
asked this question in
Q&A
Answered by
zbynekstara
Feb 3, 2026
Replies: 1 comment 1 reply
|
Hi Orangewithsugar, The The parameter you are looking for is Best regards, |
1 reply
Answer selected by
HuiHMegumin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Hi Orangewithsugar,
The
qualityparameter only affects the quality when the image is generated withtoJPEG(), i.e. it has no effect fortoPNG().The parameter you are looking for is
size(https://docs.jointjs.com/api/format/Raster/#size). By default ('1x'), the size of the generated PNG matches the size of the SVG at the time of export. Increasing the value here will make the PNG that much larger (= have that much more detail at zoom). For example, passing in '2x' here will make the PNG twice as large in each direction than the origin SVG.Best regards,
Zbynek Stara