It looks like this bug is being caused because the file being processed 0001@00.jpg is stored "in color" (space YCbCr), and so when unpacked in leptonica has depth 32 rather than 8, which the program mflm-skewDetectGray is expecting.
Solution might be to modify the program (mflm-skewDetectGray) so that it accepts color and flattens it out.
However must discuss this with Raj to see if it's halfway reasonable.
It looks like this bug is being caused because the file being processed 0001@00.jpg is stored "in color" (space YCbCr), and so when unpacked in leptonica has depth 32 rather than 8, which the program mflm-skewDetectGray is expecting.
Solution might be to modify the program (mflm-skewDetec tGray) so that it accepts color and flattens it out.
However must discuss this with Raj to see if it's halfway reasonable.