Hi @Plane Wryter, I can see that you are attacking your problem with gusto, so that's awesome! However, I see you are asking a lot of similar questions and I'm not sure you are getting the answers you need. I think you'd get a lot more specific help if you made your needs really explicit. Maybe an example image before and after to show what your script would do. You can use a mock image, but use real values. There are people here who would be able to give you great directions. It's no big deal, just a suggestion to help.
- Mark