When trying to load a png image in GD, I get the error (Mozilla Firefox)
"cannot display image, because it contains errors"; IE just shows an empty
'image-error' box.
When loading a large enough image, it does build up the image
gradually until it's almost finished, but then the partly visible image
is replaced by the error message/error box as described above.
It seems like indexed <256cols pngs are not subject to this problem. I've
read that earlier versions of GD were limited to handling indexed pngs
only, but recent GD versions (>=2.0) should not.
My configuration:
GNU/Debian Linux 3.0, Apache 1.3.31, PHP 4.3.4, GD 2.0 'or higher'
(bundled with PHP), libpng12-0 1.2.5.0-7,
Also tested on GNU/Slackware Linux 9.0 with Apache 2.0.49, PHP 4.3.6,
GD 2.0.22, with similar results.
The testcode I use:
<?php
$photo = "image.png" ;
$im = @ImageCreateFro mPng ($photo);
header ("Content-type: image/png");
ImagePng ($im);
?>
Anyone got a clue? Thanks in advance.
Wim 2 3410
On Sun, 29 Aug 2004 16:52:40 +0200, "Xiao Tencas" <xi*********@gm x.net> wrote: When trying to load a png image in GD, I get the error (Mozilla Firefox) "cannot display image, because it contains errors"; IE just shows an empty 'image-error' box. When loading a large enough image, it does build up the image gradually until it's almost finished, but then the partly visible image is replaced by the error message/error box as described above.
A wild guess; how long does the image take to download? Is it exceeding the
setting of max_execution_t ime? This would dump an error message in the image
data and so could cause this symptom.
--
Andy Hassall / <an**@andyh.co. uk> / <http://www.andyh.co.uk >
<http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool
On Sun, 29 Aug 2004 16:52:40 +0200, Xiao Tencas wrote: The testcode I use: <?php $photo = "image.png" ; $im = @ImageCreateFro mPng ($photo); header ("Content-type: image/png"); ImagePng ($im); ?>
No clue. But to debug GD images, you can change the header to
"Content-type: text/plain" temporarily. This will dump the contents to the
screen as plain text, including error messages!
--
Jeffrey D. Silverman | je**********@jh u.edu **
Website | http://www.newtnotes.com
(** Drop "pants" to reply by email) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Carolyn Gill |
last post by:
It was working fine on the test server. loaded it onto iis6 server after
installing php and got everything working (after redirecting it to the
correct directory) except for 1 annoying error that I don't understand.
Any help would be appreciated - the sooner the better so I can get some
sleep tonight!
Undying gratitude to anyone willing to help a php beginner!
here's the page with the error http://www.ioworldwide.com/ and...
|
by: Paul |
last post by:
I thought this is more of an IE issue but i've had no joy on that group
perhaps somebody here will have a clue.
If i click a link to a web page embedded in Excel (97 OR 2000) i get the
standard error page displayed by IE (you know, the 'cannot find server or
dns error' page).
Turning off 'show friendly http error messages' alleviates this.
(Unfortunately this is the Windows default setting!)
Whats going on?!?!
|
by: Dalan |
last post by:
At first I was not certain what could cause Access 97 from displaying
most jpeg images, but not all. After further testing, it seemed that
all original images of less than 275 pixels per inch or less would
display, but those close to 300 pixels/inch or greater would not (MS
Access cannot recognize the file format xxx.jpg). The larger, original
images were scanned and saved as .bmp (at 300 dpi producing a 15MB
file). Then the images were...
|
by: T. Davis |
last post by:
In C#, I am able to successfully stream a TIFF image that comes from a
BLOB field in a database, save it to file, then convert the pages
within TIFF file into jpegs (using GDI+) and display on the web (using
ASP.NET).
However, when I generate the Image object using FromStream (passing in
the MemoryStream containing image bytes), an exception of "A generic
error occurred in GDI+" is thrown when performing the conversion/save
for display....
|
by: moondaddy |
last post by:
I have an application where users need to upload images and in my web.config
file I have a setting like this:
<httpRuntime maxRequestLength="512" />
Which restricts image larger than 500k from being uploaded. I'm also using
the HtmlInputFile control to do the uploading. My problem is that when the
user's file size exceeds 512k, the page immediately redirects to the "The
page cannot be displayed" error page which is very confusing. ...
| |
by: xievvv |
last post by:
Hi,
I am getting an image from pc location and when displaying it on a web page using filestream, it give following error.
A generic error occurred in GDI+.
bit.Save(Response.OutputStream,System.Drawing.Imaging.ImageFormat.Gif);
Below is full code.
FileStream fs = new FileStream(Server.MapPath("/DocTrac/Scan.gif"),FileMode.Open);
Byte by=new Byte;
|
by: pmz |
last post by:
Dear Group,
I'm not sure what is going one with my software, but something really
strange.
I'm storing in BLOB in MySQL data of an image, which I display like:
header("Content-Type: image/png");
echo base64_decode($blobColumnData);
Firefox/IE says, that the image cannot be displayed because it
|
by: redpears007 |
last post by:
Hi Again,
Throwing this one out to you again as i am not getting anywhere and
can find little to no information out there.
I am currently displaying images (Jpegs) in access via the routine set
up in the article http://support.microsoft.com/kb/285820/en-us. It
works fine if the image is under 1000x1000 pixels. It is set up so
the user can double click to open the image in its host application.
|
by: imtmub |
last post by:
I have a page, Head tag Contains many Scripts and style sheet for Menu and Page. This code working fine and displaying menus and page as i wanted.
Check this page for reference.
http://www.marco.com.cn/web-content/marco_re10.html
--------------------------------------------------------------
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>Marco</title>
<!-- InstanceEndEditable -->
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |