This works:

Mac OS X screen shot jpg

defaults write com.apple.screencapture type jpg

but I’d also like to change the compression level. How to do that? Doesn’t look like its possible…