Sharp: Callback on individual tiles creation

Created on 8 Jun 2018  路  2Comments  路  Source: lovell/sharp

Hello,

I'm using tile to generate an image pyramid using google/zoomify layout and file output.
Is there any way I can execute some code when each output tile is created, instead of waiting for the whole process to be completed?

Thank you!

question

All 2 comments

Hello, this is not possible with libvips. Perhaps you could watch for new files arriving in a directory with a tool like chokidar (but remember to set its awaitWriteFinish option to true).

Thank you for the clarification @lovell

Was this page helpful?
0 / 5 - 0 ratings