Compresses an image file from the input path and writes the compressed image to the output path.
Compresses an image file in memory and returns the compressed image as a byte vector.
Compresses an image file from the input path up to a specified size and writes the compressed image to the output path.
Compresses an image file in memory up to a specified size and returns the compressed image as a byte vector.
Converts an image file from the input path to a specified format and writes the converted image to the output path.
Converts an image file in memory to a specified format and returns the converted image as a byte vector.