JPG compression on GPU

Is it possible to implement JPG compression on the GPU using CUDA?
Have this been done?
If so, is this faster than reading the image back and then using the CPU for compression?

(I am implementing an application to render 3D images and then serving them over the web in jpg format)