Longstanding CCEers will remember there used to be a plug-in that did this automatically, but it messed up the site loading time so it was turned off.
This seems to work -
w=480&h=1&fit=max&auto=format%2Ccompress
( .jpg?w=480&h=1&fit=max&auto=format%2Ccompress[/img] )