Anonymous user
Bitmap/Read an image through a pipe: Difference between revisions
Bitmap/Read an image through a pipe (view source)
Revision as of 19:35, 25 October 2020
, 3 years agoUse "jpegtopnm" rather than "/usr/bin/jpegtopnm".
(Use "jpegtopnm" rather than "/usr/bin/jpegtopnm".) |
|||
Line 322:
# Launch Netpbm "jpegtopnm".
# Input is taken from "input.jpeg" and result sent to stdout.
▲let p = startProcess("/usr/bin/jpegtopnm", args = ["input.jpeg"], options = {})
let stream = FileStream(p.outputStream())
let image = stream.readPPM()
|