Create JPEG

Is it possible to create a JPEG image dynamically from merging a sprite and a text label and write it to the file system?

You can use CCRenderTexture, but as far as I know it uses PNG output format. Check CCRenderTexture.cpp for details.