Requisite sharp features/API to enable configurable image compression?

From the link directly above: