Profile application after opening file

@afre the original script matches on (srgb) luminance only. here is a version that can work also on individual channels:
histogram-matching.py (7.2 KB)
use -m RGB for that.
as I wrote previously, the results I got were far from spectacular though…
also, if you have scipy installed the new version can take advantage of that to (try to) produce better curves