![]() The finished DjVu can the be uploaded to the Commons.Of course, this also means the compression is no longer lossless, so depending on your source material you may want to omit this option. The -clean option removes "flyspecks", leftover artefacts from the scanning process. Obviously, you may have to change the -dpi option depending on your situation. Once I have the PBM files ready, I convert them to DjVu using the cjb2 and djvm programs from the DjVuLibre suite:įor file in *.pbm do cjb2 -dpi 400 -clean "$file" "$file".djvu done.The reason I don't use any off-the-shelf image manipulation software is that they're often not sufficiently capable of handling bitonal files. I use a quick-and-dirty home-brewn pbmextract program for that which lets you specify the coordinates of the extraction rectangle (so you can read them off directly from some image manipulation program like The GIMP). Sometimes, the PBMs need to be cropped before they are converted to DjVu. ![]() ![]() If it's not already PBM, you can use convert like above to convert the files to PBM. The output file format depends on the format of the image embedded in the PDF.
0 Comments
Leave a Reply. |