I have a div with overflow:hidden and an image inside that div.Also I have some buttons for zoom in zoom out and for moving the image to all directions via change of margin.How do I crop only the visible part of the image and save it ? Is it possible to do it with only javascript?
You can't save an image with javascript. You should do it with PHP. http://www.php.net/manual/en/function.imagecrop.php
You can do it in combination with Jcrop.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.