jrac icon indicating copy to clipboard operation
jrac copied to clipboard

How can I get the image/data of the cropped/resized area?

Open corneliutusnea opened this issue 12 years ago • 3 comments

Hi, Is there a way to read back the cropped image using JS? I can see I can read the coordinates but I'd like the processed image.

Thanks, Corneliu.

corneliutusnea avatar Dec 27 '12 23:12 corneliutusnea

I think you'd need to do it on your favorite language or any image processing like imagemagick using those coordinates given by jrac.

alecguintu avatar Feb 18 '13 04:02 alecguintu

One way will be to use html5 canvas. Use use canvas drawImage and getImageData methods

josnidhin avatar Feb 18 '13 09:02 josnidhin

Hello, yes jrac only output crop/dimension coordinates.

Cheers, Cedric

trepmag avatar Feb 23 '13 09:02 trepmag