josealejandro2928 / react-image-picker-editor

React library for the selection, edition and compression of images in png, jpeg and webp formats This package is made completely with html and css without any extra components or npm packages. It's based in functional components based in hooks, for optimization were used memo, useMemo and useCalback for avoiding any extra-renders.
https://www.npmjs.com/package/react-image-picker-editor
MIT License
27 stars 21 forks source link

Hello , i am new to this library is there any way to set max size of image being uploaded here . i want the maximum size of image being uploaded to be 200kb but setting the compressInitial to 0.1 or 0.2 does not ensure that #8

Open Tapasvi48 opened 6 months ago

josealejandro2928 commented 6 months ago

There is not such a way. Using the package with jpeg or webp with the corresponding compression rationyou can optimize the size f the image while not losing quality