-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
I noticed some of the sample code uses thumbnailImage, eg.:
The libvips thumbnail_image operation can be slow and is only there for emergencies. It's much better to use thumbnail, if possible. For example:
$ time vips thumbnail_image nina.jpg x.jpg 128
real 0m0.126s
user 0m0.079s
sys 0m0.049s
$ time vips thumbnail nina.jpg x.jpg 128
real 0m0.062s
user 0m0.043s
sys 0m0.020s
Because thumbnail combines open and load into a single operation, it can do tricks with many file formats to improve load time and quality.
lopcode and esiqveland
Metadata
Metadata
Assignees
Labels
No labels