Description Usage Arguments Value Examples
Compress the size an image by reducing the number of bits used to represent each pixel to b
1 | compress(img_path, b, out_path)
|
img_path |
String , file path of the image |
b |
Integer, desired byte size |
out_path |
String, a valid output path depending on the OS |
String, compressed image path
1 | # compress("..data/image.png", 2L, "..data/compressed_image.png")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.