I have code that allows me to obtain four coordinates:
initial_x initial_y final_x final_y
This coords form a rectangle which allows to crop the body of a website (all the area within the rectangle). My question is how can you save this cropped area as a file (export it to the machine likewise .jpeg for example) or just allocate memory from the browser to perform this task temporarily? This runs on javascript html and css