After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 553098 - Unrecognized image format
Unrecognized image format
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: import/export MS Excel (tm)
git master
Other All
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
: 490584 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-09-21 09:18 UTC by J.H.M. Dassen (Ray)
Modified: 2010-11-03 12:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
BMP file used for testing (234.51 KB, image/bmp)
2008-09-21 09:18 UTC, J.H.M. Dassen (Ray)
  Details
Perl script to generate xls (656 bytes, application/x-perl)
2008-09-21 09:19 UTC, J.H.M. Dassen (Ray)
  Details
XLS generated by perl script (239.50 KB, application/vnd.ms-excel)
2008-09-21 09:19 UTC, J.H.M. Dassen (Ray)
  Details
0001-excell-read-Put-bmp-header-creation-in-its-own-funct.patch (2.20 KB, patch)
2010-11-02 23:37 UTC, Hans de Goede
none Details | Review
0002-Add-bmp-header-to-dib-image-objects-data.patch (1.61 KB, patch)
2010-11-02 23:38 UTC, Hans de Goede
none Details | Review
0003-Add-a-define-for-bmp-header-size.patch (1.78 KB, patch)
2010-11-02 23:39 UTC, Hans de Goede
none Details | Review

Description J.H.M. Dassen (Ray) 2008-09-21 09:18:14 UTC
Environment:
* Debian unstable ("sid"):
  * libspreadsheet-writeexcel-perl 2.25-1
  * openoffice.org-calc 1:2.4.1-9
* Gnumeric trunk

Reproduction steps:
* Produce a bmp:
	convert /home/ray/Desktop/earthlights.jpg -resize 640x200 /tmp/earthlights.bmp
* Use Spreadsheet::WriteExcel to include it in an xls:
	test.pl
* Open with gnumeric:
	gnumeric earthlights.xls
  Results in
	** (gnumeric:32544): WARNING **: Unrecognized image file format
  and the file being opened with the placeholder image.
* Open with oocalc:
	oocalc earthlights.xls
  results in the file being opened and the image being displayed properly.
Comment 1 J.H.M. Dassen (Ray) 2008-09-21 09:18:59 UTC
Created attachment 119074 [details]
BMP file used for testing
Comment 2 J.H.M. Dassen (Ray) 2008-09-21 09:19:22 UTC
Created attachment 119075 [details]
Perl script to generate xls
Comment 3 J.H.M. Dassen (Ray) 2008-09-21 09:19:58 UTC
Created attachment 119076 [details]
XLS generated by perl script
Comment 4 Jean Bréfort 2008-09-22 06:26:48 UTC
The image is stored in dib format which seems to be not supported by gdk-pixbuf.
Comment 5 Andreas J. Guelzow 2008-11-09 18:16:09 UTC
*** Bug 490584 has been marked as a duplicate of this bug. ***
Comment 6 Hans de Goede 2010-11-02 23:37:35 UTC
Created attachment 173731 [details] [review]
0001-excell-read-Put-bmp-header-creation-in-its-own-funct.patch

The problem here is that we are passing a dib to gdk pixbuf without adding a bmp header. I'm attaching a patch series which fixes this.
Comment 7 Hans de Goede 2010-11-02 23:38:20 UTC
Created attachment 173732 [details] [review]
0002-Add-bmp-header-to-dib-image-objects-data.patch
Comment 8 Hans de Goede 2010-11-02 23:39:12 UTC
Created attachment 173733 [details] [review]
0003-Add-a-define-for-bmp-header-size.patch