Anonymous user
Bitmap/PPM conversion through a pipe: Difference between revisions
Bitmap/PPM conversion through a pipe (view source)
Revision as of 19:40, 25 October 2020
, 3 years agoReplaced full paths by simple executable names (use PATH).
m (→{{header|Nim}}) |
(Replaced full paths by simple executable names (use PATH).) |
||
Line 207:
# Launch ImageMagick "convert".
# Input is taken from stdin and result written in "output1.jpeg".
var p = startProcess("
var stream = p.inputStream()
image.writePPM(stream)
Line 214:
# Launch Netpbm "pnmtojpeg".
# Input is taken from stdin and output sent to "output2.jpeg".
p = startProcess("
stream = p.inputStream()
image.writePPM(stream)
|