Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

buffer image

const url = 'https://example.com/test.jpg';
const options = {
  string: true,
  headers: {
    "User-Agent": "my-app"
  }
};

const image = await encode(url, options);
await decode(image, { fname: 'example', ext: 'jpg' });
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #buffer #image
ADD COMMENT
Topic
Name
6+8 =