This is a handy program/plugin for Windows that does what you’re talking about – http://www.neatimage.com