Skip to content

ImageProcessing-ElectronicPublications/pnmtodjvurle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pnmtodjvurle

DjVu Color RLE. This utility is for transcoding a low-color mask from PNM (Netpbm) to DjVuRLE. This is required by the csepdjvu utility.

Build

Type:

make

Example

tifftopnm foreground.tif | pnmtodjvurle > foreground.rle
tifftopnm background.tif > background.ppm
cat foreground.rle background.ppm > output.sep # for win: copy /b foreground.rle+background.ppm output.sep 
csepdjvu output.sep demo.djvu
rm foreground.rle background.ppm output.sep # for win: del foreground.rle background.ppm output.sep

or

tifftopnm foreground.tif > foreground.pnm
tifftopnm background.tif > background.ppm
pnmtodjvurle foreground.pnm foreground.rle
cat foreground.rle background.ppm > output.sep # for win: copy /b foreground.rle+background.ppm output.sep 
csepdjvu output.sep demo.djvu
rm foreground.rle foreground.pnm background.ppm output.sep  # for win: del foreground.rle foreground.pnm background.ppm output.sep

Copyright

Authors: Arcand, manfred.
This is free and unencumbered software released into the public domain.