3 ms·
> you can easily slot into Netpbm’s wonderfully Unix-y set of tools by reading/writing PPM on stdin/stdout No experience with the netpbm suite of tools, but Im
by oefrha 6y ago
> you can easily slot into Netpbm’s wonderfully Unix-y set of tools by reading/writing PPM on stdin/stdout
No experience with the netpbm suite of tools, but ImageMagick (which TFA mentioned addition to netpbm) supports reading/writing any supported format on stdin/stdout, the skills of which I dare say are a bit more transferrable. A trivial example:
$ <my_image.ppm convert ppm:- jpeg:- | convert jpeg:- png:- >my_image.png && identify my_image.png
my_image.png PNG 250x250 250x250+0+0 8-bit sRGB 15836B 0.000u 0:00.000
- ktpsns 6y agoThat's also my feeling -- the CLI tooling with imagemagick or various image libraries in various programming languages are quite good. For instance, with ipython, numpy and OpenCV I can edit images in a REPL fashion without even thinking about image file formats. Anyway, if you like PPM, you may also like https://tools.suckless.org/farbfeld/ https://tools.suckless.org/farbfeld/ . The guys from suckless picked up the unix philosophy for simple file formats and pipes, cf. the examples https://tools.suckless.org/farbfeld/examples/ https://tools.suckless.org/farbfeld/examples/