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.
Hervé Drolon
None
None
Public
|
Date: 2009-11-15 22:35 Yes, I've tried tiffcp with various options. I've converted the file from |
|
Date: 2009-11-15 17:11 Did you find a solution for this bug ? |
| Filename | Description | Download |
|---|---|---|
| freeimage_brokentiff.tar.gz | Download |
| 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 |