Closed rwpino closed 6 years ago
👍
@rwpino you can workaround by :
we need something line
phin({ url, compression: true, headers: {
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.46 Safari/537.36"
} }, (err, res) => {
if (err === null) {
cb(null, res, res.body);
} else {
cb(err);
}
});
This will probably require a breaking change thought to feed in the options for phin
@rwpino @syzer v0.5.2 has a new constructor option that allows you to pass the headers. Can you try it out for me?
await Jimp.read({ url: '...', headers: { ... } })
confirmed that v0.5.2 solve this issue. Feel free to open another PR if you have further issues.
Hello, I want to use your library to load my image from a remote server thru http with custom headers and converted into base64 string,It is possible do it right now?. if no will be super good if the method allow pass configurations headers