Share

FreeImage

Tracker: Bugs

5 G4 compressed TIFF with 1bpp breaks on 64bit Linux - ID: 2882437
Last Update: Comment added ( tiran )

I've found a problem with FreeImage and G4 compressed TIFF images with 1
bit per pixel. I've created a minimal test case for the issue:

#include <FreeImage.h>

#define IMG "IMAGE8027.tif"
#define IMG2 "IMAGE8027_saved.tif"

int main(void) {
FREE_IMAGE_FORMAT fif = FIF_UNKNOWN;
FIBITMAP *dib = NULL;

fif = FreeImage_GetFileType(IMG, 0);
dib = FreeImage_Load(fif, IMG, 0);
FreeImage_Save(fif, dib, IMG2, 0);
return 0;
}

The code was executed on a X86 Debian Linux box and an AMD64 Ubuntu box. On
the 32bit box the resulting TIFF is fine but on my 64bit box the TIFF has
glitches and shadows. The tar.gz contains the code, the original TIFF and
the two saved TIFFs.


Christian Heimes ( tiran ) - 2009-10-20 15:58

5

Open

None

Hervé Drolon

None

None

Public


Comments ( 2 )

Date: 2009-11-15 22:35
Sender: tiranAccepting Donations

Yes, I've tried tiffcp with various options. I've converted the file from
and to several compressions but the error didn't occur. Ubuntu ships
libtiff 3.8.2 with several patches, FreeImages uses 3.9.1. I've copied over
the .c and .h files from libtiff 3.8.2 and rebuild freeimage. The problem
still persists.


Date: 2009-11-15 17:11
Sender: drolonProject AdminAccepting Donations

Did you find a solution for this bug ?
It seems to be related to libtiff internal fax compression algorithm and
64-bit but I don't know why this can append ...
Did you tried libtiff tools in order to reproduce the problem ?




Attached File ( 1 )

Filename Description Download
freeimage_brokentiff.tar.gz Download

Changes ( 2 )

Field Old Value Date By
assigned_to nobody 2009-11-15 17:11 drolon
File Added 347438: freeimage_brokentiff.tar.gz 2009-10-20 15:59 tiran