Good day.
I'm trying to download a PNG image from a URL, resize it to max 500px width, then use the image bytes to upload it to my own storage bucket.
I've tried this and several other packages; however, resizing an image, while significantly reducing its size, reduces file quality much more than any common image editor does.
Please see the following original image:
Original image, 3000x3000, 7.6MB
And here is the result after using copyResize:
Shrunk original image with img.copyResize, 500x500, 255kB
The result is exactly the same regardless of which interpolation property I set in the copyResize function.
And here is simply using Mac's Preview app:
Shrunk original image with image editor, 500x500, 196kB
Would you be able to help me find the correct tool to shrink an image's width, please?