Skip to main content
Create a new WeaveImage object

Parameters

object
required
The options for this media type
  • data: The raw image data as a Buffer
  • imageType: (Optional) The image format: ‘png’ (default), ‘jpeg’ or ‘webp’. Publishing always names the stored file image.png

Returns

WeaveImage

Example