Colon in filename causes Fatal Error

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
hankr

Colon in filename causes Fatal Error

Post by hankr »

It appears putting a colon in a filename causes MagickWand to give the following error:

PHP Fatal error: magickreadimage(): PHP cannot read /path/to/file/IMG:0072.jpg; it specifies an unknown or disallowed ImageMagick pseudo-format in /home/site/image.php on line 155

This message happens with any file that initially works, and then is renamed with a colon, e.g. rename IMG_0072.jpg to IMG:0072.jpg

I have tried this on 1.0.1, 1.0.3, and 1.0.4 and all exhibit the same behavior.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Colon in filename causes Fatal Error

Post by magick »

The original MagickWand for PHP author decided not to permit colons in an image filename other than for select pseudo-formats such as plasma:. We suspect the reason is increased security although we're not sure.
Post Reply