Foliotek / Croppie

A Javascript Image Cropper
http://foliotek.github.io/Croppie
MIT License
2.57k stars 884 forks source link

Need the cropped image showing in alert in image folder #492

Open sakshisyscom opened 6 years ago

sakshisyscom commented 6 years ago

Expected Behavior

Cropping is going proper and showing in alert, i want that cropped image after cropping in demo folder of images.

Actual Behavior

Showing selected portion of image in alert .

Steps to Reproduce the Problem

1.Click on get result button. 2.It shows cropped image in alert. 3.I want to get that image in demo folder of images.

Example Link

Specifications

BVazquezAlvarez commented 6 years ago

1.- Export image in base64 (result method) 2.- Send to server via Ajax:

$.ajax({ type: "POST", url: "script.php", data: { imgBase64: dataURLBase64 } }).success(function(o) { alert('saved'); });

3.- Save it in server-side: https://stackoverflow.com/questions/13198131/how-to-save-an-html5-canvas-as-an-image-on-a-server

sakshisyscom commented 6 years ago

Successful in saving it to folder. Thanks for your kind help.