Changelog for HylaFAX 4.2.2
+* fix error of tiffcheck missing needed reformatting (17 Aug 2005)
* add workaround for a bug in recent versions of gawk (15 Aug 2005)
* fix send error causing ECM data to not get sent (15 Aug 2005)
* homogenize default user id for user files (9 Aug 2005)
}
uint16 compression = 0;
(void) TIFFGetField(tif, TIFFTAG_COMPRESSION, &compression);
- if (compression != COMPRESSION_CCITTFAX3 && compression != COMPRESSION_CCITTFAX4) {
- emsg.append("Document requires reformatting, not in Group 3 or Group 4 format.\n");
- status |= REFORMAT;
- }
- if (!useMMR && compression == COMPRESSION_CCITTFAX4) {
- emsg.append("Document requires reformatting, "
- "client is incapable of receiving 2DMMR data.\n");
- status |= REFORMAT;
- }
- uint32 g3opts = 0;
- (void) TIFFGetField(tif, TIFFTAG_GROUP3OPTIONS, &g3opts);
- if ((g3opts ^ dataFormat) & GROUP3OPT_2DENCODING) {
- emsg.append("Document requires reformatting, "
- "client is incapable of receiving 2DMR data.\n");
- status |= REFORMAT;
+ if (useMMR) {
+ if (compression != COMPRESSION_CCITTFAX4) {
+ emsg.append("Document requires reformatting, not in Group 4 format.\n");
+ status |= REFORMAT;
+ }
+ } else {
+ if (compression != COMPRESSION_CCITTFAX3) {
+ emsg.append("Document requires reformatting, not in Group 3 format.\n");
+ status |= REFORMAT;
+ }
+ uint32 g3opts = 0;
+ (void) TIFFGetField(tif, TIFFTAG_GROUP3OPTIONS, &g3opts);
+ if ((g3opts ^ dataFormat) & GROUP3OPT_2DENCODING) {
+ emsg.append("Document requires reformatting, not in 2DMR format.\n");
+ status |= REFORMAT;
+ }
}
/*
* FaxSend can handle multistrip MH and MR images (not MMR),