(@ thumbnail bytes .result +-
    (# ext (%
               'resample.exe'     .name
               STD_PIPE_IO        .mode
               (' '--format=jpeg' 
                  '--size=128x96' 
                  length '-' '-') .parameters
               path               .workdir
           )
    -
        (& '--length=' bytes._ .length) |
        (parse -r file-names.1 path '/' .)
    >
        .resample
    )
    (# char-in resample.stdout .result -
        (# char-out resample.stdin bytes)
    )
+
    {array : integer : 2^8} bytes result
)