DjVu Color RLE.
This utility is for transcoding a low-color mask from PNM (Netpbm) to DjVuRLE.
This is required by the csepdjvu
utility.
Type:
make
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
Authors: Arcand, manfred.
This is free and unencumbered software released into the public domain.