Hello Everyone,
So there is a HTML Canvas with photo editing tool. Which looks like this -
<div class="col-md-12 col-lg-8 col-sm-12" id="mainDiv">
<div
id="canvas1Div"
data-toggle="tooltip"
title=""
data-original-title="Image Processing Area"
>
<canvas id="canvas1" width="564" height="488"> </canvas>
</div>
<div
id="canvasDiv"
data-toggle="tooltip"
data-original-title=""
title=""
style="border: 0px;"
>
<canvas id="canvas3" width="188" height="240"> </canvas>
<canvas
id="canvas4"
width="188"
height="240"
style="width: 188px; height: 240px;"
> </canvas>
</div>
</div>
So could it be possilbe with JavaScript that the photo I choose can fit to the center part of the canvas (colorfull borders) by executing it on the console of the browser?
Thank you.
