Export a .JPG file that the user can save... without PHP?

Is this possible? I’m thinking that it isn’t possible without a server side script, but I wanted to know if anyone knows otherwise.