imagesy

Get image height

&reftitle.description; `int` `imagesy` `resource` `image`

Returns the height of the given `image` resource.

&reftitle.parameters;

&gd.image.description;
&reftitle.returnvalues;

Return the height of the `image` or &false; on errors.

&reftitle.examples;

### Using `imagesy`

    <?php

    // create a 300*200 image
    $img = imagecreatetruecolor(300, 200);

    echo imagesy($img); // 200

    ?>

&reftitle.seealso;

- `imagecreatetruecolor`
- `getimagesize`
- `imagesx`