react-image-file-resizer icon indicating copy to clipboard operation
react-image-file-resizer copied to clipboard

Image is getting pixeled after resizing it

Open RLeDEV opened this issue 3 years ago • 1 comments

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

RLeDEV avatar Oct 27 '22 22:10 RLeDEV

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

PaperMold avatar Oct 31 '22 16:10 PaperMold

Are you uploading images with indexed colors? (Like a GIF or low-bitrate PNG)

This might cause that; you'd get the same in Photoshop if you didn't first convert to full RGB.

Ben-CA avatar Dec 30 '24 17:12 Ben-CA