https://github.com/ericdaugherty/imagefetcher
Download an image, optionally crop it, and upload to S3
https://github.com/ericdaugherty/imagefetcher
Last synced: 5 months ago
JSON representation
Download an image, optionally crop it, and upload to S3
- Host: GitHub
- URL: https://github.com/ericdaugherty/imagefetcher
- Owner: ericdaugherty
- License: mit
- Created: 2018-12-08T05:31:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T02:43:25.000Z (over 3 years ago)
- Last Synced: 2024-06-20T21:09:45.015Z (about 2 years ago)
- Language: Go
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Image Fetcher
[](https://goreportcard.com/report/github.com/ericdaugherty/imagefetcher)
[](https://github.com/ericdaugherty/imagefetcher/blob/master/LICENSE)
ImageFetcher fetches an image from a URL, crops it, and uploads it to an S3 bucket or stores it locally (or both).
It also supports pausing it once daily (ex, at night).
```
Usage:
-dir string
The local directory to store the captures images in.
-imageURL string
The URL of the image to fetch.
-rect string
The x/y coordinates that define the rectangle to use to crop in the form of x,y,x,y
-s3Bucket string
The S3 bucket name (not the ARN) to upload the snapshots to.
-s3Region string
The AWS region to use. (default "us-east-1")
-sleepHour int
The hour to pause image capture (0-23)
-wakeHour int
The hour to resume image capture (0-23)```