Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rosswarren/s3-upload-script
A script to upload images to S3 with GZip encoding and Shas for caching
https://github.com/rosswarren/s3-upload-script
Last synced: 10 days ago
JSON representation
A script to upload images to S3 with GZip encoding and Shas for caching
- Host: GitHub
- URL: https://github.com/rosswarren/s3-upload-script
- Owner: rosswarren
- Created: 2015-08-11T08:07:19.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-16T14:33:00.000Z (about 9 years ago)
- Last Synced: 2024-12-06T19:11:32.085Z (30 days ago)
- Language: Shell
- Size: 164 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# S3 Upload Script
GZIP, add sha for cache busting and upload to S3 with gzip encoding.
## Dependencies
**MAC:**
- `brew install md5sha1sum`
- `pip install awscli` (https://aws.amazon.com/cli/)Or equivalent package on other OS
## To run
1. Add the images you want to upload to the images folder
2. Run the resize.sh and upload.sh scripts `export BUCKET="s3://your_bucket_name/"; bash resize.sh && bash upload.sh`
3. For resizing hero images use the resize-hero.sh script, the original image must be provided in 1920x823 size (21x9 aspect ratio)
4. You can determine the URLs from the console output or run `node index.js` to search with filenames