for s in ( rgb ) return encode((char) (s.0 - s.1)/(s.0 + s.1), "jpeg" )