Skip to main content

CDN Resource - Gzip Image Compression

This setting is available in small, large, dynamic(aksela) and streaming resource types.

Method

URL

PUT

https://cloud.medianova.com/api/v1/cdn/{organization_uuid}/resource/{resource_uuid}

Parameters

Description

Type

Required

organization_uuid

The created organization in Medianova Cloud Panel unit ID value. Path parameter.

String

Yes

resource_uuid

The created resource in Medianova Cloud Panel unit ID value. Path parameter.

String

Yes

gzip_image

The values of the gzip_image must be any of the; “true”, “false”.

Boolean

Yes

Payload

CODE
{
    "gzip_image": true,
    "resource_uuid": "****-****-****-****"
}

Gzip Compression Custom Types for Image File

File format or mime-type information can be sent.

Parameters

Description

Type

Required

organization_uuid

The created organization in Medianova Cloud Panel unit ID value. Path parameter.

String

Yes

resource_uuid

The created resource in Medianova Cloud Panel unit ID value. Path parameter.

String

Yes

gzip_image_types

This parameter is used for compressing image files in API requests. Users can specify which types of images will be compressed through this parameter.

This parameter takes 'image/gif', 'image/jpeg', 'image/png', 'image/svg+xml', 'image/webp', 'webp', 'gif', 'jpeg', 'jpg', 'png', 'svg', 'svgz' values.

Array

Yes

Payload

CODE
{
    "resource_uuid": "***-***-****-***",
    "gzip_image_types": [
        "image/png",
        "image/jpeg",
				"gif"
    ]
}
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.