https://github.com/huzaifac137/url-to-aws-img
Converts Image Urls into images stored in your AWS s3 bucket and returns the s3 urls of the images that can be used to display image or download by making direct request to it.
https://github.com/huzaifac137/url-to-aws-img
aws aws-s3 image-converter image-downloader javascript nodejs
Last synced: 3 months ago
JSON representation
Converts Image Urls into images stored in your AWS s3 bucket and returns the s3 urls of the images that can be used to display image or download by making direct request to it.
- Host: GitHub
- URL: https://github.com/huzaifac137/url-to-aws-img
- Owner: huzaifac137
- Created: 2023-10-08T07:47:12.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-08T13:52:11.000Z (about 2 years ago)
- Last Synced: 2025-06-20T06:51:00.524Z (4 months ago)
- Topics: aws, aws-s3, image-converter, image-downloader, javascript, nodejs
- Language: TypeScript
- Homepage:
- Size: 20.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# url-to-aws-img
Converts Image Urls provided into images stored in your AWS s3 bucket and returns the s3 urls of the images that can be used to display image or download by making direct request to it.
# Usage
```js
const urlToAWS = require("url-to-aws-img");// your custom function to use this package
const Convert=async()=>{
const urls = ["https://www.shutterstock.com/shutterstock/photos/687455338/display_1500/stock-photo-calming-serene-ocean-abstract-687455338.jpg" , "https://www.shutterstock.com/shutterstock/photos/687455338/display_1500/stock-photo-calming-serene-ocean-abstract-687455338.jpg"];const awsUrls= await urlToAWS(urls);
return awsUrls;
};Convert();
```
# environemt variables
```env
AWS_ACCESS_KEY_ID= .....
AWS_SECRET_ACCESS_KEY= ......
AWS_ENDPOINT= .......
AWS_REGION= ......
AWS_BUCKET_NAME= .....
```