This to-do item done.
Specify a channel as having premultiplied alpha and use it to un-premultiply all other channels before resampling.
Another stab at the api, offering classes of functions for different common tasks.