FileVerbs API Documentation - Image Conversions

Image Format Conversion & Compression

Image Format Conversion & Compression

The FileVerbs Image Conversion API enables converting image files between a wide range of formats, including PNG, JPEG, BMP, GIF, TIFF, WebP, SVG, EMF, ICO, PDF, and Base64. It also supports compression, resolution control, resizing, grayscale conversion, watermarking, and multi-page TIFF creation.

Supported Conversions

  • ImageToPng
  • ImageToJpeg
  • ImageToBmp
  • ImageToGif
  • ImageToTiff
  • ImageToWebp
  • ImageToSvg
  • ImageToEmf
  • ImageToIco
  • ImageToPdf
  • ImageToBase64
  • Base64ToImage
  • ImageToMultipageTiff
  • ImageResize
  • ImageCompress
  • ImageToGrayscale
  • ImageAddWatermark
  • ImageToText

Compression & Resolution

You can specify compression (e.g., LZW, CCITT4, None) and output DPI for formats like TIFF using the optional ImageSettings object.

Example: Convert to TIFF with Compression

{
  "action": "imagetotiff",
  "parameters": {
    "fileIds": ["your_file_id"],
    "options": {
      "ImageSettings": {
        "ResolutionDpi": 300,
        "Compression": "LZW"
      }
    }
  }
}

Example: Compress an Image

{
  "action": "imagecompress",
  "parameters": {
    "fileIds": ["your_file_id"],
    "options": {
      "Quality": 60
    }
  }
}

Example: Convert Image to Grayscale

{
  "action": "imagetograyscale",
  "parameters": {
    "fileIds": ["your_file_id"]
  }
}

Example: Extract Text from Image

{
  "action": "imagetotext",
  "parameters": {
    "fileIds": ["your_file_id"]
  }
}

Note: For Base64 output, the response is a `.txt` file containing the encoded string.