[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: "package pgm2tiff not found" . . .



On 2020-02-27 at 09:56, tomas@tuxteam.de wrote:

> On Thu, Feb 27, 2020 at 03:41:18PM +0100, Albretch Mueller wrote:
> 
> [...]
> 
>>  Well, partially thank you that did it [...]
> 
>> $ date; time apt-file search pgm2tiff
>> Do 27. Feb 15:30:21 CET 2020
> 
> But we did know this one, didn't we? Internet searches (for me) turn empty
> too. Perhaps pgm2tiff is in the Big Bit Graveyard...

I don't find it either, but I do find a program called 'pnmtotiff', part
of the netpbm package.

PGM stands for "portable graymap", and PNM stands for "portable anymap",
and the man page of pnmtotiff indicates that it is capable of accepting
PGM files as input.

So as long as you're in a position to run the commands yourself, rather
than having them invoked by something that hardcodes invocation of
pgm2tiff, this should probably be a reasonable substitute. From there,
tiff2pdf (available in the same libtiff-tools package already discussed)
should be able to handle the PDF conversion.


That said, there might not be any need to futz about with TIFFs for
this. netpbm also includes pnm2ps, which translates a PNM into a
PostScript file; ghostscript includes ps2pdf, which translates a
PostScript file into a PDF file.

That's a two-step chain, rather than the three-step one described in the
original quoted paragraph, and I don't know of any reason it shouldn't
produce an equally good result.


(Also, I have just discovered - rather to my surprise - that the
V.E.R.A, as instantiated in dict-vera, doesn't appear to have entries
for any of PGM, PNM, and PPM. I wonder if this is worth a wishlist bug
report.)

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man.         -- George Bernard Shaw

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: