compress: Compress images

Description Usage Arguments Value Examples

Description

Compress the size an image by reducing the number of bits used to represent each pixel to b

Usage

1
compress(img_path, b, out_path)

Arguments

img_path

String , file path of the image

b

Integer, desired byte size

out_path

String, a valid output path depending on the OS

Value

String, compressed image path

Examples

1
# compress("..data/image.png", 2L, "..data/compressed_image.png")

UBC-MDS/image-compression-toolkit--R documentation built on May 7, 2019, 7:14 p.m.