Open haoxl3 opened 5 years ago
What I have done to get around this is something like
loadFile(e) {
const file = e.file.originFileObj;
const url = URL.createObjectURL(file);
Jimp.read(url).then(img => ...)
}
any updates on that issue?
If anyone needs a workaround, you can try doing it that way
const buff = Buffer.from(base64string.split(',')[1], 'base64');
const image = await Jimp.read(buff);
Expected Behavior
jimp can read image url
Current Behavior
jimp can't read image url
Failure Information (for bugs)
name too long open 'data:image/jpeg;base64,...'
Steps to Reproduce
then I got 'name too long, open "data:image/jpeg;base64,..."' this.orignSrc is a base64 image
Screenshots
Context
sorry, none
Failure Logs