Test case for Identihub/Identihub#77
Last active
March 4, 2018 15:36
-
-
Save h4ck3rm1k3/643b1b735d8ca052170682d7bbaf6c22 to your computer and use it in GitHub Desktop.
test case for https://github.com/uracreative/identihub/issues/77
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
helloImagick Object | |
( | |
) | |
PHP Fatal error: Uncaught ImagickException: no decode delegate for this image format `' @ error/blob.c/BlobToImage/353 in /home/mdupont/experiments/imagemagick/test.php:15 | |
Stack trace: | |
#0 /home/mdupont/experiments/imagemagick/test.php(15): Imagick->readimageblob('test.svg') | |
#1 {main} | |
thrown in /home/mdupont/experiments/imagemagick/test.php on line 15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
printf("hello"); | |
$im = new Imagick; | |
$pixel = new ImagickPixel( 'transparent' ); | |
# $imagick->setFormat($format); | |
#$imagick->setCompression($compression); | |
#$imagick->setCompressionQuality($quality); | |
#$im->setImageFormat( $imageType ); | |
#$im->resizeImage( $im->getImageWidth(), $im->getImageHeight(), \Imagick::FILTER_LANCZOS, 1 ); | |
print_r($im); | |
$im->setBackgroundColor( $pixel ); | |
$im->readImageBlob( "test.svg" ); | |
$im->setImageFormat( 'png32' ); | |
$im->resizeImage( 1200, 1200, \Imagick::FILTER_LANCZOS, 1 ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment