I implemented two small functions which read/write JPEG into/from a Cairo image surface. Please find more info here: https://www.cypherpunk.at/2015/12/jpeg-support-for-libcairo/ Best regards, Bernhard