6
I’m having trouble getting value [[PromiseValue]]
Below is an example of the image in Debugger mode:
Follows code:
Html:
<img id="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" stays within the variable result
.
Does anyone have any idea how I can get the value ?
Example: "data:image/png...."
.
I’m using plugin : https://foliotek.github.io/Croppie/
In the variable
valor
returns like this:data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAgAElEQV...
end of the line with 3 dots. How can I get it complete ?– Matheus Miranda
If the server is sending it complete, it should just be the console abbreviating. Your code should have access to the full value.
– bfavaretto