tinify / tinify-nodejs

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

Can i use this with 'Digitalocean Spaces' ? #29

Closed dancinlife closed 3 years ago

dancinlife commented 3 years ago

Can i use this with 'Digitalocean Spaces' ?

const source = tinify.fromFile("large.jpg");
const resized = source.resize({
  method: 'fit',
  width: 1000,
  height: 1000,
});
resized.store({
  service: "s3",
  aws_access_key_id: "APIKEY",
  aws_secret_access_key: "APISECRETKEY",
  region: "spg1",
  headers: {
    "Cache-Control": "public"
  },
  path: "example-bucket/my-images/optimized.jpg"
});
tinify-support commented 3 years ago

Currently the API works only with Amazon S3 and Google Cloud Storage. If you have any other questions, you can also contact us at support@tinify.com.

Have a great day!