4
$\begingroup$

This is definitely not a mathematical question, but a relevant one I believe. There are incomplete versions of some books floating around the web and I want to put in the missing pages. There is a good book scanner at our university, albeit I have not really understood most of its functions yet. At the moment I am able to scan color JPGs. So I've got a batch of color JPGs, what next should I do? I want a djvu file.

I have tried cpaldjvu from djvulibre, but it seems to hang up on one single jpg. (Size 2MB.) Some people recommend passing through PDF, but this looks like a lot of overhead work to me. Is there a good tutorial for non-experts? (For Windows or Ubuntu - but bear with an Ubuntu noob who barely knows how to install packages. I am able, however, to script a few lines in bash.)

Besides, is pre-processing of the JPGs in a graphics editor helpful? Is it of use to cut out the margins, or are they useful for the DJVU encoder to approximate the background color?

PS. I think I know how to split DJVU files into pieces and reassemble them. I am only interested in JPG->DJVU here.

$\endgroup$
14
  • 4
    $\begingroup$ I think that this is off topic. $\endgroup$ Aug 20, 2010 at 14:10
  • 4
    $\begingroup$ @Andrew: of course it is. But it is a question that I think others here have dealt with, probably more so than on StackOverflow. $\endgroup$ Aug 20, 2010 at 14:19
  • 4
    $\begingroup$ Darij, I don't consider that a sufficient argument for this question to be asked here. But then I'm considered quite "hard line" in what I consider acceptable so don't take it personally! $\endgroup$ Aug 20, 2010 at 15:49
  • 3
    $\begingroup$ I agree that this is off topic and belongs on a different forum. $\endgroup$ Aug 20, 2010 at 17:24
  • 3
    $\begingroup$ I echo Andrew and Akhil -- it is off topic. $\endgroup$ Aug 20, 2010 at 17:35

1 Answer 1

3
$\begingroup$

You could write a simple script that converts your images to PDF using imagemagick, concatenates the resulting files using pdftk and finally, converts the single PDF file obtained in that way to DjVu using pdf2djvu. I had skipped the part where you said you wanted to avoid the PDF step, but I hope this will come in handy if you change your mind.

By the way, if you're using Ubuntu: sudo apt-get install imagemagick pdftk pdf2djvu

$\endgroup$
0

Not the answer you're looking for? Browse other questions tagged or ask your own question.