1--TEST--
2Test Imagick, identifyImage
3--SKIPIF--
4<?php
5$imageMagickRequiredVersion=0x675;
6require_once(dirname(__FILE__) . '/skipif.inc');
7?>
8--FILE--
9<?php
10
11$imagick = new \Imagick();
12$imagick->newPseudoImage(640, 480, "magick:logo");
13$imagick->setFormat('png');
14$data = $imagick->identifyimage();
15
16if (array_key_exists('geometry', $data)) {
17	$geometry = $data['geometry'];
18	if (array_key_exists('width', $geometry) && array_key_exists('height', $geometry)) {
19		printf(
20			"Image geometry %dx%d",
21			$geometry['width'],
22			$geometry['height']
23		);
24		exit(0);
25	}
26}
27
28echo "Failed get geometry from identifyimage:\n";
29var_dump($data);
30
31?>
32--EXPECTF--
33Image geometry 640x480