1--TEST--
2Test Imagick, setOption
3--SKIPIF--
4<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
5--FILE--
6<?php
7
8$imageOption = 0;
9
10function renderCustomBitDepthPNG() {
11    $imagick = new \Imagick();
12    $imagick->newPseudoImage(640, 480, "magick:logo");
13    $imagick->setImageFormat('png');
14    $imagick->setOption('png:bit-depth', '16');
15    $imagick->setOption('png:color-type', 6);
16    $bytes = $imagick->getImageBlob();
17    if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
18}
19
20renderCustomBitDepthPNG() ;
21echo "Ok";
22?>
23--EXPECTF--
24Ok