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 » 2008-02-28T04:14:30-07:00

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 » 2008-03-01T07:57:45-07:00

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