01-01-2025, 09:26 AM
(01-01-2025, 12:39 AM)origamifreak2 Wrote: Thanks Ofnuts . I updated my code. I also added some logic to convert the image to RGB mode if it's indexed.
This isn't something I would do. I would only enable the filter on RGB* and GRAYSCALE*. Then if someone really wants to use the filter on an indexed image, de-indexing it beforehand is a quick single-click away. Because now your filter needs to re-index the image, and how to do so properly is a nice can of worms (how many colors? which palette?).