@rattanbansal/upload-image-react
v0.0.1
Published
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
Downloads
2
Readme
Getting Started with Create React App
This project was bootstrapped with Create React App.
Available Scripts
In the project directory, you can run:
npm start
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
Features
- Crop Images with Different Size
- Upload Images on the required API path
- Upload images on the s3-bucket using your aws credentials
Requirement
Users must need to send the required variable in the cropper component as per below example and also need to define dimension for the required crop sizxe of images
const convertSizes = (imagesArray) => {
};
const imageSizes = [ { height: 300, width: 400, }, { height: 200, width: 300, }, { height: 40, width: 70, }, ];
const awsObj = {
bucket: "test-prio-assets",
accessKeyId: "YOUR-ACCESS-KEY",
secretAccessKey: "YOUR-SECRET-ACCESS-KEY",
region: "YOUR-AWS-REGION",
};