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

Related issues

terbooter picture terbooter  路  3Comments

genifycom picture genifycom  路  3Comments

kachurovskiy picture kachurovskiy  路  3Comments

zhump picture zhump  路  3Comments

natural-law picture natural-law  路  3Comments