1 2 3 4 5 6 7 8 9
for c in ( rgb ) return encode( c.red * { red: (char) 1; green: (char) 2; blue: (char) 3 }, "jpeg")