GD images works in IE, bu not in Firefox

Experts,

I am using GD library to generate images on the fly.  When testing the site within Mozilla Firefox the GD images do not display.

I link to the GD image script within the image tag as follows;

<img src='gd_create_thumbnail_large.php?filename=http://$domain/".$row."'  border='0px'>

The above works perfectly on Internet Explorer....

Please help
mhouldridgeAsked:
Who is Participating?
 
Rok-KraljCommented:
GD images are independant of browser. They are acting just like normal images, like image.png.

But the thing is maybe that you are sending wrong header. Add this at start of your image:

header("Content-type: image/png");

or image/whatever
0
 
Rok-KraljCommented:
As far as I know mozzila requires attributes to be in doble quotes.
0
 
Rok-KraljCommented:
Try this:

echo('<img src="gd_create_thumbnail_large.php?filename=http://$domain/'.$row.'"  border="0px">');
0
 
sakuya_suCommented:
if the above did not help, what is the code used in gd_create_thumbnail_large.php?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.