GD images works in IE, bu not in Firefox

Posted on 2007-07-28
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
    LVL 12

    Expert Comment

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

    Expert Comment

    Try this:

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

    Accepted Solution

    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

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Easy Project Management (No User Manual Required)

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
    These days socially coordinated efforts have turned into a critical requirement for enterprises.
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    794 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now