Comment 17 for bug 158435

Revision history for this message
danh (danh-archive) wrote :

Modified kdu_expand to a new program kdutopam per Raj, as noted above: it only writes to stdout. The -o argument triggers an error, but all other arguments are just as in kdu_expand.

It was possible to do this because of an ingenious suggestion by Raj: we just get around the kakadu suffix checking one way or another, and pass in the file name "/dev/stdout" for the output file. (This apparently is standard on ubuntu and maybe on linux, but i was unaware of it, being stuck in the old /dev/tty days. Only wrinkle is to
make sure that all regular stdout doesn't go there, but that turned out to be easy to fix, just replacing one cout with cerr.)

This works.

The sources are now checked into the tree in petabox/sw/books/microfilm/kdutopam/. cd to that directory and
type make to build the program. If it doesn't build for anybody, please let me know. (It's rigged up to compile on gutsy and breezy, but i haven't made libraries for intermediates c..., edgy, feisty. Will do that if needed, but it think our practice is to build for breezy. The gutsy build is sort of just for convenience. Have tested on gutsy but not breezy yet.)

Will confer with Raj tomorrow about how to fit this in to get the animated gifs animated again for newspapers.