ScanTailor-Advanced / scantailor-advanced

ScanTailor Advanced is the version that merges the features of the ScanTailor Featured and ScanTailor Enhanced versions, brings new ones and fixes.
GNU General Public License v3.0
199 stars 8 forks source link

Current Git version cannot read a JPG, but happily reads TIFF #98

Open Fifis opened 3 months ago

Fifis commented 3 months ago

Good evening!

I scanned a book into JPG (600 DPI, 10015×7109 px) and wanted to load the pages into the project. However, the JPG images cannot be loaded. The error message says, The following file could not be loaded: 20240625182732_001.jpg.

When I convert this file into TIFF with LZW compression via mogrify, everything works as expected. This is strange because the large image size is not an issue (TIFF loads successfully).

OS: Arch Linux with kernel 6.9.6-arch1-1 ScanTailor version: scantailor-advanced-git-v1.0.19.r6.g0dc4f1e-1

Enclosed you will find one problematic file that produces the aforementioned error. In case the uploader messes with it, its MD5 checksum should be ee03c36774fa31237423bd81ea929220.

20240625182732_001

zvezdochiot commented 3 months ago

Hi @Fifis .

:information_source: See #79 .

Fifis commented 3 months ago

Okay, I see. For now, I circumvented the problem by converting the files to TIFF and processing them. The JPG was acquired from the flat bed of a Canon imageRUNNER ADVANCE DX C5850i scanner. In this case, maybe it is worth notifying the QT developers that their highly experimental stuff breaks something as fundamental as JPG support.