examples/input_output/imageCompressionExample/README.md
This example demonstrates how to set the image quality when saving an image, and how to affect the quality by resizing the image through multiples passes.
In the code, pay attention to:
img.save(curFilename, quality); to save an image with a particular quality settingimg.resize to resize the imageofBufferFromFile to load and manipulate the bytesOF_IMAGE_QUALITY_BEST,
OF_IMAGE_QUALITY_HIGH,
OF_IMAGE_QUALITY_MEDIUM,
OF_IMAGE_QUALITY_LOW,OF_IMAGE_QUALITY_WORSTWhen launching this application you will see:
When the g is pressed:
When the image is clicked on:
Instructions for use:
g to glitch the imageThis Example uses no other classes.