How should I crop an image at client side using jcrop and upload it?

Here’s basic html 5 code: https://jsfiddle.net/zm7e0jev/ This code crops the image, shows a preview and sets the value of an input element to the base64 encoded cropped image. You can fetch the image file in php the following way: //File destination $destination = “/folder/cropped_image.png”; //Get convertable base64 image string $image_base64 = $_POST[“png”]; $image_base64 = str_replace(“data:image/png;base64,”, … Read more