How does it compare to vipsthumbnail that utilize low memory usage which I 
believe it use horizontal threading, does Go's image/draw package consume 
large memory if the image source is huge?


On Monday, 11 May 2020 07:00:11 UTC+8, Nigel Tao wrote:
>
> On Mon, May 11, 2020 at 4:28 AM robert engels <ren...@ix.netcom.com 
> <javascript:>> wrote: 
> > All of the code to do scaling and cropping in the ‘image’ package in the 
> stdlib. 
>
> Cropping is in the stdlib but scaling is not. Various scaling 
> algorithms (e.g. nearest neighbor, Catmull-Rom) are in the 
> golang.org/x/image/draw package instead. As 
> https://godoc.org/golang.org/x/image/draw says, "This package is a 
> superset of and a drop-in replacement for the image/draw package in 
> the standard library". 
>
> https://godoc.org/golang.org/x/image/draw#example-Draw has some example 
> code. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/b0443e9a-3edb-4bcb-b056-f11186188eb9%40googlegroups.com.

Reply via email to