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