Script Request: Remove Any Color by Suz Shook

Moderator: Kathy_9

Post Reply
JoeB
Posts: 2778
Joined: Fri Mar 28, 2008 10:04 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: LENOVO 4524PE4 ThinkCentre M91p
processor: 3.10 gigahertz Intel Quad Core i5-2400
ram: 8 GB
Hard_Drive_Capacity: 4.6 TB
Corel programs: PSP 9, X7 to 2019, 32 & 64-bit
Location: Canada

Script Request: Remove Any Color by Suz Shook

Post by JoeB »

In the main PSP forum member @ToreB was asking about methods to remove a color from an image. Several methods were provided, including Suz Shook's script created in 2004 (but which still works in new versions of PSP). @ToreB asked me to post the script here so that he could experiment with it. Basically, the script just automates an existing method available in PSP - i.e., selecting the whole image, then going to Selections>Modify>Select Color Range, which opens a dialogue where you can sample the color you wish to remove, set softness and tolerance, and click OK. But it automates a few extra steps you need also.

Doing it manually requires that you first make sure that the image is not a background layer - i.e., you have to be working on a promoted/actual raster layer. As well, when doing it manually, after you click OK to get back to the image you have to then invert the selection and then hit the Delete key to delete the selection. The script, on the other hand, will automatically determine whether or not the image is a background layer and, if it is, promote it to a regular raster layer. As well, after you click OK on the dialogue the script automatically inverts the selection and deletes it. So it does save several steps that can be annoying and saves you from having to manually do the extra steps mentioned above.

So I'm posting the script here for those who might find it useful. And here is the link to the original topic in the main PSP forum so that you can see the other methods that were suggested for achieving the same or at least similar results.

viewtopic.php?f=56&t=65303

There is also an .html file in the zipped folder I am attaching that you can open in your browser by double clicking it, and which contains Suz's original information about the script.
Attachments
ss-RemoveAnyColor-00 (1).zip
Remove Any Color script and info
(3.9 KiB) Downloaded 261 times
Last edited by JoeB on Tue Apr 30, 2019 7:51 pm, edited 2 times in total.
Regards,

JoeB
Using PSP 2019 64bit
ToreB
Posts: 15
Joined: Fri Apr 12, 2019 12:59 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit

Re: Script Request: Remove Any Color by Suz Shook

Post by ToreB »

Thanks a lot!
jayson1945
Posts: 34
Joined: Thu Mar 01, 2018 2:50 pm
operating_system: Windows 7 Home Premium
System_Drive: C
32bit or 64bit: 64 Bit
processor: Intel Core i-5 3.2Ghz
ram: 4GB
Hard_Drive_Capacity: 500gb
Monitor/Display Make & Model: BenQ
Corel programs: PSP X2, X4, X7, PSP 2018,
Location: UK

Re: Script Request: Remove Any Color by Suz Shook

Post by jayson1945 »

Thank you so much for describing the ACTUAL STEPS taken to achieve the result. It's so much better when you see a breakdown.
Post Reply