Hi ImageMagick team,
I am using the ImageMagick-6.6.3-1-Q16-windows-dll extension for PHP, everything works perfect except .ico support? I receive this error,
no decode delegate for this image format `C:\Windows\phpA678.tmp' @ error/constitute.c/ReadImage/532 .
This leads me to believe icon files are just unsupported, but they are supposed to be?
Let me know if you need any extra information.
Thanks, Slick
Fail ico support in PHP
Re: Fail ico support in PHP
ImageMagick supports ICO. Assume your ICO file is named image.ico. Does this work from the command line:
- imdisplay image.ico
Re: Fail ico support in PHP
Ok here's what I have found, icons do work, but only if their extension is .ico. Where I was receiving the error was during a PHP upload, opening the temporary file named ****.tmp although this is no problem with any other image format.
Is this a limitation of the icon format? Is it possible to detect icons without the extension or will I need to create a workaround in PHP? Thanks again
Is this a limitation of the icon format? Is it possible to detect icons without the extension or will I need to create a workaround in PHP? Thanks again
Re: Fail ico support in PHP
We can only auto detect image formats if there is a unique method to identify an image format. Most image formats have a unique signature, PNG for example has \211PNG\r\n\032\n. Icon images do not appear to have a unique signature so you must provide a hint to ImageMagick such as filenames in these formats: ico:image.tmp or image.ico.
Re: Fail ico support in PHP
Cheers mate! Thanks for the quick responses that works great.