Guy. I have been reading your excellent and comprehensive user notes. They are worth their weight in gold. Thank you.
-----------------------------------------------
Here is an improved version of the script for use with most image formats. However, I am investigating why imagemagick is not reading the colour information in the .fts multi-layered files produced by DSS...?
EDIT: FITS analysis indicates a variable expansion error... whatever that is and the file does not conform to fits. IM could not find a color profile, however, it must have a profile of sorts. Suggest save DSS files as tiff for use with this script, until I can get to the bottom it.
Basically, the script separates all the channels R G B L. But with some formats, L splits into several layers which need to be average or mean combined to create the L channel. Interestingly, the L in Lab does the same thing.