Ok, this bug is actually an incompatibility due to changes in the Rescale process. I'll release an update with the modified script that fixes this issue.
In the meanwhile, the fix is very easy:
- With Process Explorer, expand the Scripts item. Expand also the Utilities item and look for the DarkStructureEnhance script.
- Right-click the DarkStructureEnhance item. Select Edit script menu option.
- The script's source code is loaded on the Script Editor. Scroll down to line number 265. Starting from this line, we have the following lines of code:
var rescale = new Rescale;
with ( rescale )
{
mode = RescaleRGB;
}
To fix the bug, we simply have to change 'RescaleRGB' to 'RGBK' in line # 268. Then the code will be as follows:
var rescale = new Rescale;
with ( rescale )
{
mode = RGBK;
}
On Windows the script file is on a subfolder of 'C:\Program Files folder'. Unless you are running PixInsight with administrative privileges (hmm, you are not doing that, do you?) you'll have to save the modified script to another folder where you have write rights; for example a folder under your personal Documents folder, or something similar. Then you can run the script for example by selecting Script > Execute Script File from the main menu.
Sorry for the mistake.