5 ms·
People like to say using DjVu gives you a 10x space saving over PDF for scanned documents. That's not exactly true. If you are comparing djvu to your scanner's
by kccqzy 8y ago
People like to say using DjVu gives you a 10x space saving over PDF for scanned documents. That's not exactly true. If you are comparing djvu to your scanner's default PDF output then yeah maybe the PDF is 10x bigger. But I've scanned enough documents to know how to properly optimize and tune the resulting PDFs. Things like JBIG2 are a huge improvement over default scanner output for text. And the result PDF is no more than 2x the djvu file. The portability gain is well worth it.
- agumonkey 8y agoany tool to batch tune/compress ? for a friend
- pmoriarty 8y agoThere's another gain for DJVU here: the speed gain. For scanned documents, my DJVU viewer lets me page much faster through a DJVU document than a PDF viewer does through a PDF. At least that's been my experience on my old, slow laptop, where speed really matters. Also, I don't always scan myself. Sometimes I'll get a PDF generated by someone else, which contains scanned images. Then I'll often convert it to DJVU for speed and space savings.
- Synaesthesia 8y agoI find it depends on the PDF and also on the software. On Mac OS PDFs are very fast.
- userbinator 8y agoThings like JBIG2 are a huge improvement over default scanner output for text. Just be careful that it doesn't silently change the text, because JBIG2 compressors can be lossy that way: https://news.ycombinator.com/item?id=6156238 https://news.ycombinator.com/item?id=6156238
- deleted 8y ago[deleted]
- MaxBarraclough 8y agoCan the PDF be compressed with, say, 7z?
- Fnoord 8y agoYes it can be compressed (I just tried simple /usr/bin/zip w/o flags on a 10 MB PDF with results of ~10% file saving), but then it has to be uncompressed before usage. Its better to use some kind of transparent mechanic from within the OS (e.g. filesystem or compact.exe/CompactGUI [1]). [1] https://github.com/ImminentFate/CompactGUI https://github.com/ImminentFate/CompactGUI
- MaxBarraclough 8y agoNeat, I didn't know Windows 10 has an improved compression system. I presume it only works with NTFS? Surprised the page doesn't say.
- Fnoord 8y agoYep, NTFS-only. The GUI is just a frontend for the Windows command compact.exe which does mention NTFS-only [1] [2] [1] https://www.petri.com/compress-files-with-compact-exe https://www.petri.com/compress-files-with-compact-exe [2] https://stackoverflow.com/questions/7928840/how-to-use-compact-exe-the-default-windows-compression-in-a-batch-file https://stackoverflow.com/questions/7928840/how-to-use-compa...
- MaxBarraclough 8y agoHaving just googled it, I'm surprised to see that ext4 doesn't support compression. I presume that's for simplicity?
- Fnoord 8y agoI suppose, yes. Its also an older FS which largely has backwards compatibility. You could ask Theodore Ts'o, the principal author of extXfs. I suppose you already read this one [1] [1] https://serverfault.com/questions/617648/transparent-compression-filesystem-in-conjunction-with-ext4 https://serverfault.com/questions/617648/transparent-compres...