Skip Menu |
 

This queue is for tickets about the Imager CPAN distribution.

Report information
The Basics
Id: 41406
Status: resolved
Priority: 10/
Queue: Imager

People
Owner: TONYC [...] cpan.org
Requestors: laurent.lehelloco [...] chauvin-arnoux.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: BMP file header have the data size always to 0
Download (untitled) / with headers
text/plain 922b
Dear Sir, I use IMAGER to produce some BMP files, for a specific use i have needed the 'data size' information (and not the file size) but the BMP generated, with IMAGER, have this information always to '0'. I have made some research into the sources files of the 0.65 version It seems that the problem is located into the write_bmphead function. You will find all the information below. Distribution IMAGER-0.65 file: bmp.c Function : int write_bmphead(io_glue *ig, i_img *im, int bit_count, int data_size) Line 368 of file: if (!write_packed(ig, "CCVvvVVVVvvVVVVVV", 'B', 'M', data_size+offset, 0, 0, offset, INFOHEAD_SIZE, im->xsize, im->ysize, 1, bit_count, BI_RGB, 0, (int)(xres+0.5), (int)(yres+0.5), colors_used, colors_used)){ To have a correct information into the image header section, after 'BI_RGB' the value must be 'data_size' and not '0' Yours faithfully, Laurent LE HELLOCO
Download (untitled) / with headers
text/plain 312b
On Wed Dec 03 10:14:26 2008, llh wrote: Show quoted text
> Dear Sir, > > I use IMAGER to produce some BMP files, for a specific use i have needed > the 'data size' information (and not the file size) but the BMP > generated, with IMAGER, have this information always to '0'.
Thank you, I'll fix this for the next release. Tony
Download (untitled) / with headers
text/plain 335b
On Wed Dec 03 10:14:26 2008, llh wrote: Show quoted text
> Dear Sir, > > I use IMAGER to produce some BMP files, for a specific use i have needed > the 'data size' information (and not the file size) but the BMP > generated, with IMAGER, have this information always to '0'.
Hi, This problem has been fixed in Imager 0.67. Thank you for the report.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.