We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is it possible in any way to give the image() function an url to an image from cloudinary or another such service ?
image()
or would i have to download the image from cloudinary. pass it in. and delete it locally again?
The text was updated successfully, but these errors were encountered:
var http = require("http"); var images = require("images"); var url = 'http://www.lenna.org/full/l_hires.jpg'; http.get(url, function(res) { var buffer = []; var currentByte = 0; var countByte = res.headers['content-length']; if (res.statusCode === 200) { res.on("data", function(trunk) { buffer.push(trunk); currentByte += trunk.length; console.log(Math.floor(currentByte / countByte * 100) + "% " + currentByte + "/" + countByte); }); res.on("end", function() { var data = Buffer.concat(buffer); var full = images(data).resize(512); var harf = images(full, 0, 0, 512, 512); harf.save("Lenna.jpg"); console.log("Done!"); // WARNING this picture contains nudity. }); } });
Sorry, something went wrong.
No branches or pull requests
is it possible in any way to give the
image()
function an url to an image from cloudinary or another such service ?or would i have to download the image from cloudinary. pass it in. and delete it locally again?
The text was updated successfully, but these errors were encountered: