IMAGE Block

The IMAGE block displays one or more images within an attachment.

IMAGE Block

Block Parameters

Name
type

Description

LINK*
string

URL of the original image

NAME
string

Name of the image

PREVIEW
string

URL of the thumbnail version of the image. If not specified, the LINK will be used for preview. It is recommended to explicitly specify this for stable display across different clients

WIDTH
integer

Width of the image in pixels. It is advisable to provide this along with HEIGHT

HEIGHT
integer

Height of the image in pixels. It is advisable to provide this along with WIDTH

Example

How to Use Examples in Documentation

{
            IMAGE: [
                {
                    NAME: 'This is Mantis',
                    LINK: 'https://files.shelenkov.com/bitrix/images/mantis.jpg',
                    PREVIEW: 'https://files.shelenkov.com/bitrix/images/mantis.jpg',
                    WIDTH: 1000,
                    HEIGHT: 638
                }
            ]
        }
        
[
            'IMAGE' => [
                [
                    'NAME' => 'This is Mantis',
                    'LINK' => 'https://files.shelenkov.com/bitrix/images/mantis.jpg',
                    'PREVIEW' => 'https://files.shelenkov.com/bitrix/images/mantis.jpg',
                    'WIDTH' => 1000,
                    'HEIGHT' => 638
                ]
            ]
        ]
        

Continue Learning