Public bug reported:
Binary package hint: gscan2pdf
It appears that attempting to save a djvu file scanned at a resolution
of 600 dpi fails in gscan2pdf 0.9.26. I'm not sure when the bug first
appeared, as this is the first time I have tried to save a djvu file at
this resultion.
Running gscan2pdf with the '--debug' option shows that the error is
related to giving cjb2 an invalid value for the -dpi option:
cjb2 -dpi 600dpi /home/yozen/FATTY_FAT/gscan2tmp/MHY243AhAK/4iEtfzxnzr.pnm
/home/yozen/FATTY_FAT/gscan2tmp/MHY243AhAK/ZQ2WVcMpXW.djvu
CJB2 --- DjVuLibre-3.5.20
Simple DjVuBitonal encoder
Usage: cjb2 [options] <input-pbm-or-tiff> <output-djvu>
Options are:
-verbose Displays additional messages.
-dpi <n> Specify image resolution (default 300).
-clean Cleanup image by remove small flyspecs.
-lossy Lossy compression (implies -clean as well)
-losslevel <n> Loss factor (implies -lossy, default 100)
Encoding is lossless unless a lossy options is selected.
djvused '/home/yozen/FATTY_FAT/gscan2tmp/MHY243AhAK/ZQ2WVcMpXW.djvu' -e 'select
1; set-txt djvusedtxtfile' -s
*** [1-12311] Failed to open document
'file://localhost/home/yozen/FATTY_FAT/gscan2tmp/MHY243AhAK/ZQ2WVcMpXW.djvu'
*** (DjVuDocEditor.cpp:187)
*** 'void DJVU::DjVuDocEditor::init(const DJVU::GURL&)'
*Note: I changed my temporary directory because my / partition wasn't
big enough for many temp files
Saving a document scanned at a resolution of 300 dpi does not cause this
issue, and I assume the same is true for resolutions below that:
cjb2 -dpi 300 /home/yozen/FATTY_FAT/gscan2tmp/MHY243AhAK/R07iQ1Yt72.pnm
/home/yozen/FATTY_FAT/gscan2tmp/MHY243AhAK/6fxnuQ8uMZ.djvu
djvused '/home/yozen/FATTY_FAT/gscan2tmp/MHY243AhAK/6fxnuQ8uMZ.djvu' -e 'select
1; set-txt djvusedtxtfile' -s
djvm -c '/home/yozen/Documents/Important PDFs/<cut scanned filename>.djvu'
/home/yozen/FATTY_FAT/gscan2tmp/MHY243AhAK/6fxnuQ8uMZ.djvu
Process 11666 exited.
Removing 'dpi' from '600dpi' should fix the problem (that's why I
assumed it was only 600 dpi which had problems). This issue does not
arise when saving to pdf, nor when scanning with scanimage (I did not
test with scanadf).
** Affects: gscan2pdf (Ubuntu)
Importance: Undecided
Status: New
--
Saving a djvu file with a resolution of 600 dpi fails in gscan2pdf v0.9.26
https://bugs.launchpad.net/bugs/283847
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs