Hello Garagecoder,
I have applied your G’MIC code, within the CMD prompt (Windows 64 - bit), with my 2 jpeg images (Dark - Bright) and it does work fine!
I have also tried the G’MIC filter: Layer > “Blend Seamless” and it does wonders as well 
Thanks a lot indeed for your suggestions!