Resize your image on the fly from S3 Compatible Storage
1.3K
Resize your image on the fly from S3 Compatible Storage
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
At the beginning of making a project, you may directly upload images to S3 and don't think that you will have various types of devices or clients that require different image sizes. This application can be used to resize images directly when your client requires images of different sizes
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
git clone https://github.com/dodysat/image-resizer.git
cd image-resizer
npm install
cp .env.example .env
npm start
Anda dapat menggunakan image docker untuk mencoba aplikasi ini. Image docker tersedia di Docker Hub
docker run -d -p 3000:3000 --name image-resizer -e \
AWS_ACCESS_KEY_ID=<your_aws_access_key_id> -e \
AWS_SECRET_ACCESS_KEY=<your_aws_secret_access_key> -e \
AWS_REGION=<your_aws_region> -e \
AWS_ENDPOINT=<your_aws_endpoint> -e \
IMAGE_QUALITY=<your_image_quality> -e PORT=3000 dodysat/image-resizer

Supported Parameters
w : width
h : height
q : quality (between 1 to 100, higher is better, default is 80)
ps: If you declare `w` and `h` at the same time, the image will be cropped. If you only declare one of them, the image will be resized proportionally.
Example:
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)Distributed under the Apache License. See LICENSE for more information.
Dody Satria - LinkedIn - [email protected]
Project Link: https://github.com/dodysat/image-resizer
Content type
Image
Digest
sha256:ea3e9df52…
Size
64.9 MB
Last updated
about 4 years ago
docker pull dodysat/image-resizer