I have a problem saving my canvas. I think that is because my canvas is too large. I have asked for help here:
Elements on the canvas disappear w/ jsfiddle
canvas.toDataURL() for large canvas
… but no success.
My problem is the next:
I have a canvas for example with these dimensions: 1123x1965 pixels and I need to resize to 29.7x52 centimeters and put them in 300dpi.
My rational was as follows:
- After the edited template, convert to full size and then save a png image to the actual size in pixels, already multiplied by 300 dpi. Made this calculation:
29.7 centimeters: 29.7*300 = 8910
52 centimeters: 52*300 = 15600
The problem on using this is basically canvas disappear. Please look this: Elements on the canvas disappear w/ jsfiddle
And todataurl function don’t work: canvas.toDataURL() for large canvas
- Then use the library imagemagick convert to 300 dpi, like this command: convert test.png -units PixelsPerCentimeter -density 300 test2.png
Anyone can help me?
Thank You.