Compresses an image with the given parameters.
Buffer representation of an image.
Quality to apply to the image (JPEG).
Maximum bound for width.
Maximum bound for height.
Compresses an image with the given parameters.