Download OpenAPI specification:
Preview service. 🚀
You can preview the following type of files:
You will be able to:
The main difference between thumbnail and preview functionality is that preview tends to be more faithful while thumbnail tends to elaborate on it, cropping it by default and rounding the image if asked. Preview should always output the file in its original format, while thumbnail will convert it to an image. There is no difference in quality between png and jpeg, the difference in quality can be achieved only by asking for a jpeg format and changing the quality parameter. Asking for a GIF output can only be done when the input file is a GIF, otherwise it will raise and error.
Creates and returns a thumbnail of the image fetched by id and version with the given size, quality, format and shape. It will automatically crop the picture.
| id required | string (Id) |
| version required | integer (Version) |
| area required | string (Area) |
| service_type required | string (ServiceTypeEnum) Enum: "files" "chats"
|
| shape | string (ImageBorderShapeEnum) Default: "rectangular" Enum: "rounded" "rectangular"
|
| quality | string (ImageQualityEnum) Default: "medium" Enum: "lowest" "low" "medium" "high" "highest"
|
| output_format | string (ImageTypeEnum) Default: "jpeg" Enum: "jpeg" "png" "gif"
|
nullCreates and returns a thumbnail of the given image with the given size, quality, format and shape.
| area required | string (Area) |
| shape | string (ImageBorderShapeEnum) Default: "rectangular" Enum: "rounded" "rectangular"
|
| quality | string (ImageQualityEnum) Default: "medium" Enum: "lowest" "low" "medium" "high" "highest"
|
| output_format | string (ImageTypeEnum) Default: "jpeg" Enum: "jpeg" "png" "gif"
|
| file required | string <binary> (File) |
nullCreates and returns a preview of the given image with the given size, quality and format
| area required | string (Area) |
| crop | boolean (Crop) Default: false |
| quality | string (ImageQualityEnum) Default: "medium" Enum: "lowest" "low" "medium" "high" "highest"
|
| output_format | string (ImageTypeEnum) Default: "jpeg" Enum: "jpeg" "png" "gif"
|
| file required | string <binary> (File) |
nullCreates and returns a preview of the image fetched by id and version with the given size, quality and format
| id required | string (Id) |
| version required | integer (Version) |
| area required | string (Area) |
| service_type required | string (ServiceTypeEnum) Enum: "files" "chats"
|
| crop | boolean (Crop) Default: false |
| quality | string (ImageQualityEnum) Default: "medium" Enum: "lowest" "low" "medium" "high" "highest"
|
| output_format | string (ImageTypeEnum) Default: "jpeg" Enum: "jpeg" "png" "gif"
|
nullCreate and returns a preview of the given file, the pdf file will contain the first and last page given. With default values will return all the pages.
| id required | string (Id) |
| version required | integer (Version) |
| service_type required | string (ServiceTypeEnum) Enum: "files" "chats"
|
| first_page | integer (First Page) Default: 1 |
| last_page | integer (Last Page) Default: 0 |
nullCreate and returns a preview of the given file, the pdf file will contain the first and last page given. With default values will return all the pages.
| first_page | integer (First Page) Default: 1 |
| last_page | integer (Last Page) Default: 0 |
| file required | string <binary> (File) |
nullCreate and returns the thumbnail of the given file, the image rendered will be the first page.
| area required | string (Area) |
| shape | string (ImageBorderShapeEnum) Default: "rectangular" Enum: "rounded" "rectangular"
|
| quality | string (ImageQualityEnum) Default: "medium" Enum: "lowest" "low" "medium" "high" "highest"
|
| output_format | string (ImageTypeEnum) Default: "jpeg" Enum: "jpeg" "png" "gif"
|
| file required | string <binary> (File) |
nullCreate and returns a thumbnail of the file fetched by id and version the image will be rendered from the first page.
| id required | string (Id) |
| version required | integer (Version) |
| area required | string (Area) |
| service_type required | string (ServiceTypeEnum) Enum: "files" "chats"
|
| shape | string (ImageBorderShapeEnum) Default: "rectangular" Enum: "rounded" "rectangular"
|
| quality | string (ImageQualityEnum) Default: "medium" Enum: "lowest" "low" "medium" "high" "highest"
|
| output_format | string (ImageTypeEnum) Default: "jpeg" Enum: "jpeg" "png" "gif"
|
nullCreate and returns a pdf preview of the given file, the pdf file will contain the first and last page given. With default values will return all the pages.
| id required | string (Id) |
| version required | integer (Version) |
| service_type required | string (ServiceTypeEnum) Enum: "files" "chats"
|
| first_page | integer (First Page) Default: 1 |
| last_page | integer (Last Page) Default: 0 |
nullCreate and returns a pdf preview of the given file, the pdf file will contain the first and last page given. With default values will return all the pages.
| first_page | integer (First Page) Default: 1 |
| last_page | integer (Last Page) Default: 0 |
| file required | string <binary> (File) |
nullCreate and returns the thumbnail of the given file, the image rendered will be the first page.
| area required | string (Area) |
| shape | string (ImageBorderShapeEnum) Default: "rectangular" Enum: "rounded" "rectangular"
|
| quality | string (ImageQualityEnum) Default: "medium" Enum: "lowest" "low" "medium" "high" "highest"
|
| output_format | string (ImageTypeEnum) Default: "jpeg" Enum: "jpeg" "png" "gif"
|
| file required | string <binary> (File) |
nullCreate and returns a thumbnail of the file fetched by id and version the image will be rendered from the first page.
| id required | string (Id) |
| version required | integer (Version) |
| area required | string (Area) |
| service_type required | string (ServiceTypeEnum) Enum: "files" "chats"
|
| shape | string (ImageBorderShapeEnum) Default: "rectangular" Enum: "rounded" "rectangular"
|
| quality | string (ImageQualityEnum) Default: "medium" Enum: "lowest" "low" "medium" "high" "highest"
|
| output_format | string (ImageTypeEnum) Default: "jpeg" Enum: "jpeg" "png" "gif"
|
null