Hi All
I'm writing an image resizing service and I'm currently using a pure Go image resizing library in order to have zero dependencies.
Simple example code here:
I'm using:
However, it's still far slower than using ImageMagick.
I've been using this image, resizing it down to 512x512:
On my machine:
Go :
real 0m0.610s
user 0m0.588s
sys 0m0.052s
ImageMagick:
time convert input.jpg -filter box -resize 512x512 test.jpg
real 0m0.112s
user 0m0.136s
sys 0m0.020s
I profiled the code and didn't see any obvious ways of speeding it up, although I don't have much experience with these types of optimisations.
Any help would be greatly appreciated. It would be amazing if we could get some decent speedups.
Ryan