Thanks Lee and Aidan.
Changelog for HylaFAX 4.3.1
+* Disable JPEG support when compiling with older libtiff (3 Nov 2006)
* Use old style lock files for OpenServer 6 (20 Oct 2006)
* Always update on-disk qfiles for jobs when state changes to running (19 Oct 2006)
* Change how we compile shared objects for Solaris DSO support (12 Oct 2006)
TIFFSetField(tif, TIFFTAG_SUBFILETYPE, FILETYPE_PAGE);
TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, (uint32) params.pageWidth());
if (params.df == DF_JPEG_COLOR || params.df == DF_JPEG_GREY) {
- TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, 8);
+#ifdef PHOTOMETRIC_ITULAB
TIFFSetField(tif, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_ITULAB);
+#else
+ printf("Attempt to save JPEG Grey/Colour data without PHOTOMETRIC_ITULAB support. This should not happen.\n");
+#endif
+ TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, 8);
TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
// libtiff requires IMAGELENGTH to be set before SAMPLESPERPIXEL,
// or StripOffsets and StripByteCounts will have SAMPLESPERPIXEL values
#include "t.30.h"
#include "config.h"
+#include "tiffio.h"
#include <ctype.h>
class2SendRTC = getBoolean(value);
else if (streq(tag, "class1ecmsupport"))
class1ECMSupport = getBoolean(value);
+#ifdef PHOTOMETRIC_ITULAB
else if (streq(tag, "class1greyjpegsupport"))
class1GreyJPEGSupport = getBoolean(value);
else if (streq(tag, "class1colorjpegsupport"))
class1ColorJPEGSupport = getBoolean(value);
+#endif
else if (streq(tag, "class1jbigsupport"))
class1JBIGSupport = getJBIGSupport(value);
else if (streq(tag, "class1persistentecm"))