--- title: "documentAttributeImageSize" description: "Defines the width and height of an image uploaded as document" nav_exclude: true image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Constructor: documentAttributeImageSize [Back to constructors index](/API_docs/constructors/index.html) Defines the width and height of an image uploaded as document ### Attributes: | Name | Type | Required | Description | |----------|---------------|----------|-------------| |w|[int](/API_docs/types/int.html) | Optional|Width of image| |h|[int](/API_docs/types/int.html) | Optional|Height of image| ### Type: [DocumentAttribute](/API_docs/types/DocumentAttribute.html) ### Example: ``` $documentAttributeImageSize = ['_' => 'documentAttributeImageSize', 'w' => int, 'h' => int]; ```