I would really appreciate some feedback and help with FabricJS.
I have a 500 x 500px pixel bounding area (defined by dashed line) within a larger 600 x 600px canvas.
However, I only want to output to PNG the small section within the dashed area, not the entire canvas. This is important, as the user should be able to change the bounding area size for their output (e.g. Facebook ad size [1200px], Business card size [???px] etc) BUT the canvas size would remain the same.
On output, I only need a PNG of the smaller bounded area.
Is this possible with FabricJS?
I have sourced a fiddle to show you what I mean: http://jsfiddle.net/prabhath/92jy8q52/
canvas.setBackgroundImage(clipingRect);
My other thought was to create a smaller canvas within a larger canvas but from what I’ve seen online, the bounding controls aren’t visible on areas outside the canvas. I’m yet to explore inner/outer canvas but unsure whether that would meet my needs.
Thanks in advance.