onurzorluer / react-image-file-resizer

Resize Local Images with React 🌄 🌅
MIT License
313 stars 41 forks source link

Image is getting pixeled after resizing it #79

Open RLeDEV opened 1 year ago

RLeDEV commented 1 year ago

Describe the bug For some reason, after resizing an image using a specific aspect ratio, it getting a bit pixeled, it may happen because of the resizing algo.

To Reproduce Steps to reproduce the behavior:

  1. Get an image from local machine
  2. Use Resizer function to resize it using the following parameters: compressFormat: png, quality: 100, rotation: 0, outputType: file
  3. Image is getting resized as expected but a little pixeled.

Expected behavior Shouldn't reduce the quality of the image after resizing it.

Screenshots Image before uploading it:

Screen Shot 2022-10-28 at 1 01 54

After:

Screen Shot 2022-10-28 at 1 02 16
pwnedev commented 1 year ago

Having the same problem, resulting image is very blocky instead of being smooth