It's entirely dependent on the program you're using. Some will have an automatic pop-up window that lets you pick the compression when you save it (GIMP for example), others will require you to set it manually, and some simpler programs simply won't have the feature at all. I'd recommend that you consult the "Help" function of whatever program your using.