Socket
Socket
Sign inDemoInstall

react-image-uploader-fa

Package Overview
Dependencies
4
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-image-uploader-fa

React library for the selection, edition and compression of images in png, jpeg and webp formats and has farsi language


Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Installation

npm i react-image-uploader-fa --save

or yarn

yarn add react-image-uploader-fa

Usages

You must import the following where you will use it:

...
import ReactImagePickerEditor, { ImagePickerConf } from "react-image-uploader-fa";
import "react-image-uploader-fa/dist/index.css"
...
  const config: ImagePickerConf = {
    borderRadius: '8px',
    language: 'fa',
    width: '330px',
    height: '250px',
    objectFit: 'contain',
    compressInitial: null,
  };
  // const initialImage: string = '/assets/images/8ptAya.webp';
  const initialImage = '';

 return <>
       ...
        <ReactImagePickerEditor
            config={config}
            imageSrcProp={initialImage}
            imageChanged={(newDataUri: any) => {
                setImageSrc(newDataUri);
            }}
            imageDeleted={() => console.log("delete")}
            imageUploaded={() => console.log("upload")}
            imageDownloaded={() => console.log("download")}
            imageEdited={() => console.log("edit")}
        />
        </>
      ...

#######

Keywords

FAQs

Last updated on 28 Oct 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc