
Resize and padding
Image size

Parameter name
Description



Fitting and padding
Name
Description


Types of crop








Last updated
{
"url": "https://deep-image.ai/api-example.png",
"width": 1000,
"upscale_parameters": {
"type": "text_x4"
}
}curl --request POST \
--url https://deep-image.ai/rest_api/process_result \
--header 'content-type: application/json' \
--header 'x-api-key: API_KEY' \
--data '{
"url": "https://deep-image.ai/api-example.png",
"width": 1000
}'import os
import deep_image_ai_client
configuration = deep_image_ai_client.Configuration(
host="https://deep-image.ai"
)
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
with deep_image_ai_client.ApiClient(configuration) as api_client:
api_instance = deep_image_ai_client.DefaultApi(api_client)
process_payload = {"url": "https://deep-image.ai/api-example.jpg", "width": 1000}
api_response = api_instance.rest_api_process_result_post(process_payload)
{
"url": "https://deep-image.ai/api-example.png",
"height": 1000
}curl --request POST \
--url https://deep-image.ai/rest_api/process_result \
--header 'content-type: application/json' \
--header 'x-api-key: API_KEY' \
--data '{
"url": "https://deep-image.ai/api-example.png",
"height": 1000
}'import os
import deep_image_ai_client
configuration = deep_image_ai_client.Configuration(
host="https://deep-image.ai"
)
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
with deep_image_ai_client.ApiClient(configuration) as api_client:
api_instance = deep_image_ai_client.DefaultApi(api_client)
process_payload = {"url": "https://deep-image.ai/api-example.jpg", "height": 1000}
api_response = api_instance.rest_api_process_result_post(process_payload)
{
"url": "https://deep-image.ai/api-example.png",
"width": 1000,
"height": 1000
}curl --request POST \
--url https://deep-image.ai/rest_api/process_result \
--header 'content-type: application/json' \
--header 'x-api-key: API_KEY' \
--data '{
"url": "https://deep-image.ai/api-example.png",
"width": 1000,
"height": 1000
}'import os
import deep_image_ai_client
configuration = deep_image_ai_client.Configuration(
host="https://deep-image.ai"
)
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
with deep_image_ai_client.ApiClient(configuration) as api_client:
api_instance = deep_image_ai_client.DefaultApi(api_client)
process_payload = {"url": "https://deep-image.ai/api-example.jpg", "width": 1000, "height": 1000}
api_response = api_instance.rest_api_process_result_post(process_payload)
{
"url": "https://deep-image.ai/api-example.png",
"width": 1000,
"height": 1000,
"fit": "canvas"
}{
"url": "https://deep-image.ai/api-example.png",
"width": 1000,
"height": 1000,
"fit": {
"crop": "content"
}
}{
"url": "https://deep-image.ai/api-example2.jpg",
"width": 1000,
"height": 1000,
"fit": {
"crop": "center"
}
}{
"url": "https://deep-image.ai/api-example2.jpg",
"width": 1000,
"height": 1000,
"fit": {
"crop": "content"
}
}{
"url": "https://deep-image.ai/api-example2.jpg",
"width": 1000,
"height": 1000,
"fit": {
"crop": "item"
}
}{
"width": 1000,
"height": 1000,
"fit": "crop"
}{
"url": "https://deep-image.ai/api-example.jpg",
"width": 1000,
"height": 1000,
"fit": "canvas",
"padding": "20%"
}{
"url": "https://deep-image.ai/api-example.jpg",
"width": 1000,
"height": 1000,
"fit": "crop",
"padding": "20%"
}