use pamstretch and pnmscale to scale by non-integer values
see also :
pamstretch - pnmscale
add an example, a script, a trick and tips
no example yet ...
... Feel free to add your own example above to help other Linux-lovers !
is a program which uses pamstretch(1),
pnmfile(1), and pnmscale(1) to smoothly scale
up a PNM file by any ratio; it’s like a more general
version of pamstretch (hence the name). But other than the
’any ratio’ bit, it’s much the same as
Uses awk just
to make some simple floating-point calculations, which is
probably overkill. But using dc makes my head hurt.