Skip to content
Snippets Groups Projects
Commit ede6d145 authored by llaffont's avatar llaffont
Browse files

Workaround pour Imagick 6.5

parent 4ed4c6c1
Branches
Tags
No related merge requests found
......@@ -222,7 +222,7 @@ class Class_AlbumRessource extends Storm_Model_Abstract {
$this->_image = new Imagick($this->getOriginalPath());
} catch (Exception $e) {
$this->_image = new Imagick();
$this->_image->newPseudoImage(50, 50, "canvas:black");
$this->_image->newPseudoImage(50, 50, "gradient:black-black");
$this->_image->setImageFormat('jpg');
}
}
......
......@@ -122,7 +122,7 @@ class AlbumRessourceInitializationTest extends AlbumRessourceFileUploadTestCase
/** @test */
public function getImageWithInexistingPathShouldCreateBlackImage() {
$black_image = new Imagick();
$black_image->newPseudoImage(50, 50, "canvas:black");
$black_image->newPseudoImage(50, 50, "gradient:black-black");
$black_image->setImageFormat('jpg');
$this->assertEquals($black_image->getImageBlob(), $this->_resource->getImage());
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment