DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=39755>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39755 Summary: Writing TIFF with JPEG compression fails Product: Batik Version: 1.6 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: SVG Rasterizer AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] This bug is easily fixed. Consider TIFFImageEncoder, from line 675: // YCbCr positioning. fields.add(new TIFFField(TIFF_YCBCR_POSITIONING, TIFFField.TIFF_SHORT, 1, new int[] {compression == COMP_JPEG_TTN2 ? 1 : 2})); Since the type of the TIFF field is TIFF_SHORT, the value must be "char[]" instead of "int[]". The current code results in an ClassCastException in TIFFField.getAsChars(). -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
