Search…
Restorations
Restore lost details and decompress images
Image restorations are one of the most important operations to perform on images with Claid API. You are given flexibility in choosing from a wide range of AI-powered neural networks to decompress and upscale images for different processing workflows.

Upscale

The upscale operation allows you to improve the overall quality of an image by rendering out new pixels. The upscale operation works along with Resizing through numeric or percentage values for upscaling.
Upscaling is turned off by default. It can be defined by setting the upscale object to one of the following upscaling methods below.
The lower the image resolution is the less information it has, making the upscaling more difficult. We recommend you to try different upscaling methods to increase the chances of finding consistent, quality results.

Properties

Name
Type
Description
smart_enhance
string
Used on small low quality product, real estate and food images.
smart_resize
string
Used on high quality images
digital_art
string
Used on drawings, illustrations, paintings, cartoons, anime, etc.
faces
string
Used on images containing persons
photo
string
Used on images taken by mobile devices or digital camera of people, nature, architecture, etc.

Request example for Upscale:

This code sample combines the use of the Resizing operation. For more details, see Resizing
Smart Enhance
Smart Resize
Photo
Faces
Digital Art
1
"operations": {
2
"restorations": {
3
"upscale": "smart_enhance"
4
},
5
"resizing": {
6
"width": "200%",
7
"height": "200%"
8
}
9
}
Copied!
1
"operations": {
2
"restorations": {
3
"upscale": "smart_resize"
4
},
5
"resizing": {
6
"width": "200%",
7
"height": "200%"
8
}
9
}
Copied!
1
"operations": {
2
"restorations": {
3
"upscale": "photo"
4
},
5
"resizing": {
6
"width": "200%",
7
"height": "200%"
8
}
9
}
Copied!
1
"operations": {
2
"restorations": {
3
"upscale": "faces"
4
},
5
"resizing": {
6
"width": "200%",
7
"height": "200%"
8
}
9
}
Copied!
1
"operations": {
2
"restorations": {
3
"upscale": "digital_art"
4
},
5
"resizing": {
6
"width": "200%",
7
"height": "200%"
8
}
9
}
Copied!

Decompress

The decompress operation allows you to remove distortion and artifacts caused by image compression methods. It can be used in conjunction with the upscale operation to prepare an image for upscaling.
Decompress is turned off by default. It can be configured by setting the decompress object to either moderate or strong, depending on how heavily compressed images are.
Possible values:
Value
Type
Description
moderate
string
Removes JPEG artifacts from the image.
strong
string
Removes JPEG artifacts more aggressively than moderate.
Moderate
Strong
1
"operations": {
2
"restorations": {
3
"decompress": "moderate"
4
}
5
}
Copied!
1
"operations": {
2
"restorations": {
3
"decompress": "strong"
4
}
5
}
Copied!
Copy link
Edit on GitHub