# @rattanbansal/upload-image-react

> This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

Latest version **0.0.1** (published 2023-06-05) · 0 weekly downloads

## Install

```sh
npm install @rattanbansal/upload-image-react
pnpm add @rattanbansal/upload-image-react
yarn add @rattanbansal/upload-image-react
bun add @rattanbansal/upload-image-react
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2023-06-05 |
| First published | 2023-06-05 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 7 |
| Unpacked size | 12.8 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | rattanbansal |

## Links

- npm: https://www.npmjs.com/package/@rattanbansal/upload-image-react
- npm.io page: https://npm.io/package/@rattanbansal/upload-image-react

## Dependencies (7)

- [react](https://npm.io/package/react.md) ^18.2.0
- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.1389.0
- [react-dom](https://npm.io/package/react-dom.md) ^18.2.0
- [react-modal](https://npm.io/package/react-modal.md) ^3.16.1
- [react-cropper](https://npm.io/package/react-cropper.md) ^2.3.3
- [react-scripts](https://npm.io/package/react-scripts.md) 5.0.1
- [@babel/polyfill](https://npm.io/package/@babel/polyfill.md) ^7.12.1

## Recent versions

- 0.0.1 (latest) — 2023-06-05

## README

# Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/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](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

<CustomCropper
				imageSizes={imageSizes}
				OnConvertSizes={convertSizes}
				awsObj={awsObj}
			/>

        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",
	};

---
_Source: https://npm.io/package/@rattanbansal/upload-image-react · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
