[libGD] #61 [Task opened] Issue with png and bmp file, but both have same content
[email protected] (libGD)
| Newsgroups | php.gd.bugs |
|---|---|
| Message-ID | <[email protected]> |
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - D.Morph (dimorph)
Attached to Project - libGD
Summary - Issue with png and bmp file, but both have same content
Task Type - Support Request
Category - Image Import/Export
Status - Unconfirmed
Assigned To -
Operating System - Linux
Severity - Medium
Priority - Normal
Reported Version - 2.0.34
Due in Version - Undecided
Due Date - Undecided
Details - First: sorry for the bad english!
Bitmap can't load correctly.
PNG-Picture same as BMP-Picture (Create with GIMP and saved as .png and .bmp)
PNG: working fine: gdImageSX=0x03; gdImageSY=0x02;
BMP: gdImageSX=0x36; gdImageSY=0x00;
BMP-SizeValue is wrong (examine with gdb/ddd/eclipse-cdt).
The c++-code:
[...]
FILE *in;
[...]
gdImagePtr im;
im = gdImageCreateFromPng(in);
if(im == NULL) im = gdImageCreateFromWBMP(in);
if(im == NULL)
{
cerr<<"No suitable Fileformat!"<<endl;
fclose(in);
exit(5);
}
[...]
More information can be found at the following URL:
http://bugs.libgd.org/?do=details&task_id=61
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.