Restricted operations
Certain Sharp operations are restricted by the solution to help enhance security. This includes (but may not be limited to):
-
clone
-
metadata
-
stats
-
composite (Though this is permitted through the use of overlayWith)
-
certain output options
(Including toFile, toBuffer, tile and raw)
For an exact list of allow-listed Sharp operations, you can visit constants.ts