Shamelessly copied the code to auto color correct the image like in gimp from this answer: a/https://stackoverflow.com/a/56365560/4561887
Shamelessly copied the code to auto color correct the image like in gimp from this answer: https://stackoverflow.com/a/56365560/4561887