javascript - Uint8ClampedArray image to jpg/png -
i have image stored in uint8clampedarray in web page. i'd save image in jpg/png file on server.
i can access image executing code:
canvas.putimagedata(imgdata,0,0); // create new img object var image=new image(); // set img.src canvas data url image.src=canvas.todataurl(); now in image.src have long string represent image.
i have 2 question:
- do need use canvas img source or can without using it?
- is possible convert image in jpg/png file in browser or have process in server?
i'd better understand how process works. help!!
Comments
Post a Comment