Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


GD images works in IE, bu not in Firefox

Posted on 2007-07-28
Medium Priority
Last Modified: 2012-06-21

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
Question by:mhouldridge
  • 3
LVL 12

Expert Comment

ID: 19585310
As far as I know mozzila requires attributes to be in doble quotes.
LVL 12

Expert Comment

ID: 19585313
Try this:

echo('<img src="gd_create_thumbnail_large.php?filename=http://$domain/'.$row.'"  border="0px">');
LVL 12

Accepted Solution

Rok-Kralj earned 2000 total points
ID: 19585321
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
LVL 10

Expert Comment

ID: 19587133
if the above did not help, what is the code used in gd_create_thumbnail_large.php?

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question