8000 Libvips is slower and consumes more memory than ImageMagick when resize small image · Issue #3654 · libvips/libvips · GitHub
[go: up one dir, main page]

Skip to content
Libvips is slower and consumes more memory than ImageMagick when resize small image #3654
Open
@WeisiminPeng-Simmi

Description

@WeisiminPeng-Simmi

Hi Libvips team, I plan to move from ImageMagick to Libvips, but I have noticed that Libvips is slower and consumes more memory than ImageMagick when resize small image, I tried 144kb, 500kb, 1mb, 5mb, and 10mb, they all need less time and less memory than ImageMagick except 144kb and 500kb.

The commands I use

//ImageMagick
//takes 0.10 seconds and memory 10mb
convert 500kB.png -resize 64x64! 500kB-out.png
// 0.06 seconds and memory 7.28mb
convert 144kb.png -resize 64x64! 144kb-im.png

//Libvips
//takes 0.41 seconds and memory 10.6mb
vipsthumbnail 500kB.png --size 64x64 -o 500kB-out-1.png
// 0.17 seconds and memory 10.37mb
vipsthumbnail 144kb.png --size 64x64 -o 144kb_libvips.png

Maybe there are some configurations I missed? I wish Libvips consumes the similar time and memory as ImageMagick, is it possible?

500kb:
500kB
144kb:
144kb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0