imagemagick - Imagick: Issues reading file on Windows 64bit EasyPHP -
imagemagick - Imagick: Issues reading file on Windows 64bit EasyPHP -
i'm having lot of difficulty working php's imagick class, doesn't seem want read images regardless method use.
method 1$handle = fopen('http://ima.gs/placeholder-400x200.png', 'rb'); // sample image $img = new imagick(); $img->readimagefile($handle); $img->resizeimage(128, 128, 0, 0); $img->writeimage(root . ds . 'foo.png');
this gives me internal error "unable read image filehandle"
method 2 (ideal method)$img = new imagick(root . ds . '00053141.jpg'); // image exist $img->resizeimage(128, 128, 0, 0); $img->writeimage(root . ds . 'foo.jpg');
this gives me internal error "no decode delegate image format `d:\work\dittocake\00053141.jpg' @ error/constitute.c/readimage/550"
configure list resultsyou can see delegates , configuration details here: http://cl.ly/image/1j2z1h072k41/image%202014-10-22%20at%209.35.28%20am.png
command line convert resultsconvert 00053141.jpg -set colorspace rgb 00053141_rgb.jpg
this worked , can confirm image mode changed cmky rgb when checking in photoshop. (my lastly resort utilize shell_exec i'd prefer not to)
i have feeling may because i'm running on windows, main goal in using convert image cmky rgb, resizing / changing image type covered in application.
windows imagemagick imagick
Comments
Post a Comment