Sharp: why use toBuffer() is to slow

Created on 15 Jan 2020  路  2Comments  路  Source: lovell/sharp

when i use sharp is fast
image

image

when i use toBuffer is to slow
image

image

why

question

Most helpful comment

A call to sharp() returns a lightweight instance. A call to toBuffer() on that instance invokes the processing pipeline.

All 2 comments

A call to sharp() returns a lightweight instance. A call to toBuffer() on that instance invokes the processing pipeline.

Ok, I see. Thanks for your reply

Was this page helpful?
0 / 5 - 0 ratings