![]() |
Blas Rodriguez Somoza wrote:Fine
Excuse me if the mail are too long, but I expend hours trying to analyze the problem I and wish to explain the process, perhaps others can get some valuable information. ;-)
I actually enjoy these kinds of discussions very much. I only wish that I knew more about JPEG.
The question is that the CIELab color space is not the same that CIELAB encoding. CIEL*a*b have at least three encodings CIELab, ICC(Lab) and ITU(Lab).After this result which don't answer the question I've found that the color space for a fax is not CIELab nor ICCLab but ITULab and so it is coded the tif.
Initially I assumed that color JPEG faxes were ITULab because of the "ITU" involvment there. However, I assumed incorrectly. ITU-T.30 Table 2 Note 35 (in the 2003 revision) clearly indicates that color JPEG faxes use CIELab color space. This was further reinforced by my discussions with those on the IJG mailing lists, in particular with the author of the CIELAB libjpeg patch, John Barber. His libjpeg patches are here:
http://davengrace.com/cgi-bin/cspace.pl http://www.inventoland.net/imaging/cii/ei02.pdf (page 34)
And we will need to use more of them in order to get color fax *sending* going (if we intend to get the tagline encoded in a lossless manner).
All this said, on a purely theoretical and technical level the sending fax machine could encode the image in whatever format it chooses. It could use CIELab or ITULab or whatever format it wanted. As we've seen many, many times before fax machines do not always adhere to the standard (which appears to be CIELAB). The purest, and most correct method to determine which type of colorspace is used by the fax image would be to look inside the JPEG image data itself, looking for the JPEG markers which will indicate which type of colorspace is used. And, as a fax receiver, we would need to be able to identify this and use the information to set the appropriate TIFF tag.
Thanks, I'll try to find the issue.
The question about the DataFormat remains unanswered.
The JPEG and JBIG DataFormat listing comes from the FaxDCS TIFF tag. Do a 'tiffinfo' on my file and compare it against the 'tiffinfo' output on your file. There was an enhancement to the faxinfo utility that parsed the FaxDCS tag to interpret the JPEG and JBIG formats from it.
The only difference that seems significative between your log and mine which I can see is that I don't get any CallID and a line in yours I don't getThis requires that you have Copy Quality checking and correction logging turned on in your SessionLogging.
RECV/CQ: Found Define Number of Lines (DNL) Marker, lines: 2112
If, after enabling the logging, you still do not see DNL markers logged it must mean that the fax machine does not use DNL markers ... which would mean that it does not transmit JPEG pages of variable length - that the page length is predetermined before the fax begins.
Lee.
____________________ HylaFAX(tm) Users Mailing List _______________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*