Skip to main content

Convert a scan page image

Takes a png or jpg image (binary data) and resizes it to a 600x600 scan page image. Returns the converted image, as a base64-encoded data url.

Request Body

The image to convert with its filename

data byte

The raw image bytes

name string

The original file name

Responses
200

The image conversion result

Schema OPTIONAL
data string OPTIONAL

The raw image bytes

error int32 OPTIONAL

Possible values: [0, 1, 2, 3]

The image conversion error if applicable

400

An error describing the issue caused by the client

Schema OPTIONAL
type int32 OPTIONAL

Possible values: [0, 1, 2, 3, 4]

The type of client error

message string OPTIONAL

The error message

500

An error describing the server issue

Schema OPTIONAL
message string OPTIONAL

The error message