How to make exported png with high resolution? #3164
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi Orangewithsugar, The The parameter you are looking for is Best regards, |
Beta Was this translation helpful? Give feedback.

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