这是indexloc提供的服务,不要输入任何密码
Skip to content

copyResize quality of a PNG is significantly worse than just resizing in GIMP/Preview/online tools #720

@cjmeyer-polymorph

Description

@cjmeyer-polymorph

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions