07-27-2022, 07:38 AM
@PixLab,
All credit for using pixelate to average the colour of an image must go to Krikor. He came up with the idea and Tin Tran programmed it into a plug-in.
I decided that I could create a plug-in with a little more flexibility by adding a desaturated layer of the original image in overlay mode (initially set at 50% opacity) which allows subsequent adjustment of contrast. This works quite well as a one-click way of removing a colour cast.
The next step was to make it work for images with an alpha channel (and ideally re-instate the alpha channel on completion), because transparency "dilutes" the effect of the colour cast reduction. This was where my problems started!
You say that you are not a programmer - I suspect you have more programming knowledge than I do. My only programming experience was some 40 years ago, in assembly language on 8 and 16 bit processors, which was simple and logical!
I attach the plug-in which works OK for images without alpha channel in case it is of interest to you.
col-cast-reduction.zip (Size: 1.27 KB / Downloads: 116)
All credit for using pixelate to average the colour of an image must go to Krikor. He came up with the idea and Tin Tran programmed it into a plug-in.
I decided that I could create a plug-in with a little more flexibility by adding a desaturated layer of the original image in overlay mode (initially set at 50% opacity) which allows subsequent adjustment of contrast. This works quite well as a one-click way of removing a colour cast.
The next step was to make it work for images with an alpha channel (and ideally re-instate the alpha channel on completion), because transparency "dilutes" the effect of the colour cast reduction. This was where my problems started!
You say that you are not a programmer - I suspect you have more programming knowledge than I do. My only programming experience was some 40 years ago, in assembly language on 8 and 16 bit processors, which was simple and logical!
I attach the plug-in which works OK for images without alpha channel in case it is of interest to you.
col-cast-reduction.zip (Size: 1.27 KB / Downloads: 116)