FileVerbs API Documentation - Image Conversions

Image Conversions

Image Manipulation Actions

The FileVerbs API allows you to apply various transformations to image files — including resizing, watermarking, compression, grayscale conversion, and text extraction via OCR.

Supported Manipulation Actions

  • ImageAddWatermark: Overlay watermark text on the image
  • ImageResize: Resize images to specific width and height
  • ImageRotate: Rotate the image clockwise by a given angle

ImageAddWatermark

Add custom watermark text to your image with position control.

{
  "action": "imageaddwatermark",
  "parameters": {
    "fileIds": ["your_file_id"],
    "options": {
      "WatermarkText": "Confidential",
      "Position": "bottom-right" // Options: top-left, top-right, center, bottom-left, bottom-right
    }
  }
}

ImageResize

Resize the image to specific dimensions (in pixels).

{
  "action": "imageresize",
  "parameters": {
    "fileIds": ["your_file_id"],
    "options": {
      "Width": 800,
      "Height": 600
    }
  }
}

ImageRotate

Rotate the image clockwise by a specified angle (in degrees).

{
  "action": "imagerotate",
  "parameters": {
    "fileIds": ["your_file_id"],
    "options": {
      "Angle": 90 // Values: 90, 180, 270
    }
  }
}