xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Voyes <q...@ocegr.fr>
Subject TIFFImageEncoder + PACKBITS
Date Thu, 28 Oct 2004 15:13:35 GMT

I agree with you Thomas but a piece of code into this updated class fix 
the following bug (the one i described) :
# The TIFF encoder cannot correctly write multiple pages per TIFF file.

This piece of code is principaly the following :

// Recompute tile offsets from the size of the compressed tiles.
// IFD offsets must be on a word boundary.
if(nextIFDOffset % 2 != 0) {
    nextIFDOffset++;
    skipByte = true;
}

instead of :   skipByte = nextIFDOffset % 2 != 0;

So, i don't mean to entirely use the updated TIFFImageEncoder class but 
just within piece of code that fixes the bug i described.



Mime
View raw message