tinify / tinify-nodejs

Node.js client for the Tinify API.
https://tinypng.com/developers
MIT License
414 stars 74 forks source link

Update documentation on AWS response promise #14

Closed gfellerph closed 6 years ago

gfellerph commented 6 years ago

The documentation does not mention that if a minified image is stored with AWS the AWS response promise is available with a call to meta() like:

var source = tinify.fromFile("large.jpg");
source.store({
  // ...options
})
  .meta()
  .then((/* meta info? */) => {})
  .catch((err) => {});

I had to read the source to find this. Allthough it was easy, the documentation should mention the possibility.

tinify-support commented 6 years ago

Hi Tuelsch,

Thank you for your input, we will keep this in mind next time we revisit the API documentation.

Happy compressing!

Kind regards,

Ellinor Bergman