Skip to content

Commit

Permalink
Merge pull request #332 from matslindh/fix-stripimage-test
Browse files Browse the repository at this point in the history
Fix two issues in StripImageTest
  • Loading branch information
rexxars committed May 30, 2015
2 parents 61dfe3a + f67fa64 commit 9489c7f
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ public function testStripMetadata() {

$this->getTransformation()->setImagick($imagick)->transform($event);

$imagick->stripImage();
// we need to actually re-read the image data on Windows (or certain ImageMagick versions?)
// to see the change in image properties..
if (defined('PHP_WINDOWS_VERSION_MAJOR')) {
$data = $imagick->getImagesBlob();
$imagick->clear();
$imagick->readImageBlob($data);
}

foreach ($imagick->getImageProperties() as $key => $value) {
$this->assertStringStartsNotWith('exif', $key);
Expand Down

0 comments on commit 9489c7f

Please sign in to comment.