I'm having difficulty getting value [[PromiseValue]]
Here is an example of the image in debugger mode:
Followthecodebelow:
Html:
<imgid="new_profile_photo" alt="Perfil">
JS:
$('#new_profile_photo').croppie({
url: e.target.result,
viewport: {
width: 200,
height: 200,
type: 'circle'
},
boundary: {
width: 300,
height: 300
}
});
var result = $('#new_profile_photo').croppie('result');
"Promisse" is within the result
variable.
Does anyone have an idea how I can get the value?
Example: "data:image/png...."
.
I'm using plugin: link