Optimize images and reduce their size with loosing very little details!
Requires permission:
Raised when optimized image
image: optimized image
size: optimized image size in bytes
Raised when failed to optimize
message: error message
Optimize the image given
returns: true if scucessfull
Set the output path of the image
default value: "/storage/emulated/0/compressed.png"
Get the output path set
returns: Path of the image output