Get the array of supported formats of Imagick.
public getFormats ( ) : array | ||
리턴 | array |
public function testSetAndGetFormats() { $i = new Imagick(__DIR__ . '/../tmp/test.gif'); $i->setFormats(array('gif' => 'image/gif')); $formats = $i->getFormats(); $this->greaterThan(0, $i->getNumberOfFormats()); $this->greaterThan(0, count($formats)); $this->assertTrue(is_array($formats)); }