image output as ASCII on Firefox under XP

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
danrop

image output as ASCII on Firefox under XP

Post by danrop »

Hi,

I'm using Windows XP Home SP2, Firefox 2.0.0.12, PHP 5.2.5 and Abyss Web Server and the static library php_magickwand_q16_st.dll.
When I try the simple example on
http://www.imagemagick.org/MagickWandForPHP/
Firefox dumps the image to screen as ASCII; however, it works fine if I view it with IE6(!)

Apparently Firefox can't figure out that it's an image its supposed to be rendering; I realise it may not be a problem with MagickWand, but any suggestions to fix this?

Thanks!
danrop

Re: image output as ASCII on Firefox under XP

Post by danrop »

For the benefit of anyone else who (unthinkingly) copy-pasted the flower annotation example on the aforementioned link, expecting it to work... I hadn't output any the header entity to describe my data: header( 'Content-Type: image/jpeg' ).

Serves me right for trying things blindly, but the fact that it worked for IE threw me off.
Post Reply