magickreadimage($mw,'tile:pic.jpg') don't work

MagickWand for PHP is an object-oriented PHP interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning MagickWand for PHP.
Post Reply
no8chat

magickreadimage($mw,'tile:pic.jpg') don't work

Post by no8chat »

thanks

Code: Select all

magickreadimage($mw,'tile:pic.jpg')
got the follow error: :(

Code: Select all

Fatal error: magickreadimage(): C API cannot read the format "tile:pic.jpg" (reason: MustSpecifyImageSize `D:\My Documents\Visual Studio 2005\WebSites\WebSite2\old\pic.jpg') [on C source line 217] in D:\My Documents\Visual Studio 2005\WebSites\WebSite2\old\test2.php on line 12
but magickreadimage($mw,'pic.jpg') is working
What is the difference magickreadimage($mw,'pic.jpg') and magickreadimage($mw,'tile:pic.jpg') :(

thanks again!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: magickreadimage($mw,'tile:pic.jpg') don't work

Post by magick »

You need to set the tile size with magicksetsize() before you call magickreadimage().
no8chat

Re: magickreadimage($mw,'tile:pic.jpg') don't work

Post by no8chat »

magick wrote:You need to set the tile size with magicksetsize() before you call magickreadimage().
Thank you,magick!!!!
Post Reply