0.0.1 • Published 11 months ago

@rattanbansal/upload-image-react v0.0.1

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

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

  1. Crop Images with Different Size
  2. Upload Images on the required API path
  3. 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",
};