Backup File Locations

Script Name: FileLocations – Backup, FileLocations – Restore
Download Link:https://drive.google.com/file/d/1ParO-W … sp=sharing
Compatibility: 9 – 2022 (tested in XI, 2018, 2020, 2021,2022)
Requirements: Place in Scripts-Trusted Folder

These two scripts are meant to backup the file locations inside PSP and then restore them later to the same version. This is not meant to be used to copy file locations across versions. Newer versions of PSP include an import utility for that purpose. Use this script when you need to reset or reinstall the same version of PSP on the same computer and you want to make sure all File Locations have been backed up.

When you run FileLocations – Backup it’ll save the “FileLocations.loc” file to your default workspaces folder. If you’re running a 64-bit version of PSP it’ll also include a ‘FileLocations64.loc” file. DO NOT RESTORE ‘FileLocations64.loc’ TO A 32-BIT VERSION OF PSP. This is very important, there are some default folder differences between 32-bit and 64-bit PSP. If you restore the 32-bit locations into the 64-bit version of PSP or the 64-bit locations into the 32-bit version of PSP somethings may not work correctly. So be careful.

When you run FileLocations – Restore it’ll open a dialog asking you to pick the file. It should hopefully default to the same locationn where the file was saved. But, if it doesn’t you should be able to navigate to the file. Select the file, hit open, and it should restore your file locations.

Quick Note: In order to properly restore all file locations and activate the same checkboxes this script accesses your computer’s Registry.

Please let me know of any problems you encounter. .

Version History:
V1.0 – Initial Script released
V1.1.1 – Updated to include versions 2019-2022 and added more output and error checking

Featured post

8bit PNG – Restore Transparency

PNG offers several versions of Transparency in a 256-color index image. One is supported by PSP, single color transparency, the other is not. It’s an 8-bit full alpha channel transparency while the main image is fully indexed. PSP does not support the 8-bit PNG Transparency option.

This script specifically reads the transparency mask from the PNG file directly and applies it to the PNG inside PSP.

You can then save this file as a regular PNG with full transparency, the image will be larger in size but it’ll work perfectly in PSP.

TO USE:

Unzip that into your Scripts-Trusted folder for PSP (Usually stored at C:\Users\<YOURUSERNAME>\Documents\Corel PaintShop Pro\2020\Scripts-Trusted )

Open your script toolbar if it isn’t already open (View -> Toolbars -> Script)

Open the image you want to run the script on

Select “Restore8-bit-Transparency” from the script list

Run the script

Once it’s done it should look correct.


Script Name: Restore8-bit-Transparency.pspscript
Download Link: https://drive.google.com/file/d/0B8FlFLNbvRNeRU9pa21KT1hwUHc/view?usp=sharing
Compatibility: 9 – 2023
Requirements: Place in Scripts-Trusted Folder

Version History:
v1.0 – First Release

Object/Selection – Size and PositionExport SVG 0.2a

This Zip file includes 2 scripts. One that simply reports the current location and size of any selected layer or object, and the Edit script which lets you specify an exact location and size for any object. The design mimics the Object Properties dialog in PhotoImpact.

History
Script Name: ObjectPositionAndSize, EditObjectPositionAndSize
Download Link:https://drive.google.com/file/d/1J_OuLA_fmJNZznH4EXZcmlsFFNKCZsI6/view?usp=sharing
Compatibility: 9 – 2013 (tested in 2023)
Requirements: Place in Scripts-Trusted Folder

Version History:
V2.1 – Fixed 2 aspect ratio bugs, added support for selections in “Edit Selection” mode.
V2.0 – Added the Dialog to scale and move selected items by exact values
V1.0 – Initial Script released

Export SVG 0.2a

This script attempts to supplement a distinct lack of functionality in PSP. Exporting vectors to a common modern format. At the moment only the most basic elements are supported with hopes to add more functionality as time goes on. This script goes through the whole image and exports only Vector layers. Other layer types are ignored.

I’ve used this script to make icons for Android Apps and websites. I’ve tried it with various complex lists of objects and gradients but I haven’t tested everything. So let me know if you experience any problems.

Supported Features:

  • Paths
  • Rectangles
  • Ellipses
  • Gradients
  • Solid colors
  • Basic Line Styles
  • Layer Opacity

Known limitations:
1 – Text and Symmetric Shapes are converted to Path objects.
2 – Line Styles don’t support PSP end caps. (might be able to work around but not right now)
3 – Line Style stroke size and gaps don’t match in SVG to how PSP displays them.
4 – Patterns and textures are not supported yet (textures probably won’t be but patterns need to be embedded which makes files large)
5 – Layer Styles are not implemented
6 – Blend modes are not implemented

History
[*] 9-11-2022 – Fixed bug preventing export if fill or stroke were transparent.

Github Repository: https://github.com/LeviFiction/PSP2SVG
Download Link: https://github.com/LeviFiction/PSP2SVG/ … master.zip
Compatibility: 9 – 2023
Requirements: Place in Scripts-Trusted Folder

Vectorize Raster

This script attempts to use my selectionToPath script to vectorize a raster image. It does this by first decreasing the number of colors in the image. You can choose between 2 – 256 colors (smaller numbers are faster). Then it creates a vector shape for each color in the palette. The end result should be a noisy approximation of your raster layer.

Simple shapes and colors are best, so flat graphics, not photos. And the fewer colors the better.

The two scripts are “Vectorize Image” and “Vectorize Layer”. This process is destructive, so both scripts create a copy of your image to work non-destructively. The first one will merge all of the layers into one image and vectorize the whole image. While the second will create a flat version of your layer, vectorize that. Placing the final vectorized image onto a vector layer in your current image.

It’s not perfect, and there are definite ways to improve the speed with additional command-line programs. But for now this is a good basic starting point.


PLEASE NOTE:
 I’m not kidding when I say keep the number of colors low. These scripts can take anywhere from 5-30 seconds per color. If PSP is acting particularly slow or the image is very large and you go for the full 256 colors you could be waiting a minimum of 21 minutes. That’s not great. I recommend sticking to 10-15 colors max. I will work on making the scripts faster.

Download Everything :https://drive.google.com/file/d/1l-W-2c … sp=sharing
Just The Script – https://drive.google.com/file/d/1PAfS63 … sp=sharing
Compatibility: PSP 9-2023
Requirements: Place in Scripts-Trusted Folder
Extra requirements – If you already have the selection To Path script you don’t need to re-download Potrace. The Script-Only version will be just fine.

If you don’t have Potrace and you downloaded Script Only version you need the Potrace program found here – http://potrace.sourceforge.net/#downloading

Selection To Path

I’ve had this script since 2018, Cassel asked me what I would do if PSP could vectorize a raster image. I had no idea, so I spent the night making this as a test. (the hardest part was the SVG import code) I never did manage to come up with a satisfactory answer to her question. The code is still amateurish but it gets the basic job done.

This script will convert any raster selection outline to a vector path. I want to be clear, this converts the selection outline only not the contents in the selection. It uses a program called Potrace by Peter Selinger. This program uses B&W images to create vector paths. Hence the use of selections. A selection is either true or false, on or off, black or white. I’ve successfully used this to create complex vector shapes in just a few clicks by using a selection around an object in a photo and then converting that selection to a path.

Installation:

Installation is easy, just unzip everything in the zip folder into your Scripts-Trusted folder. Then inside PSP make a selection on your image and run the script.

If you don’t like the idea of downloading an exe provided by me there is also the “just script’ version. Unzip the script into your “scripts-trusted” folder, then follow the link below (under Extra Requirements) to download the latest version of Potrace. Unzip the potrace.exe into your scripts-trusted folder and then you can run the script inside PSP.

Download Everything: https://drive.google.com/file/d/1mnZ-mo … sp=sharing

Script Only – https://drive.google.com/file/d/1ZZKHpT … sp=sharing

Compatibility: PSP 9-2023

Requirements: Place in Scripts-Trusted Folder

Extra requirements – If you download Script Only version you need the potrace program found here – http://potrace.sourceforge.net/#downloading

WebP -Import and Export

Script Name: ImportWebP and ExportWebP
Download: With Google Utilities – https://drive.google.com/file/d/1UgB5nW … sp=sharing
Just Scripts – https://drive.google.com/file/d/1UgB5nW … sp=sharing
Compatibility: PSP 9-2023
Requirements: Place in Scripts-Trusted Folder
Extra requirements – If you download the Script Only version you need the Google WebP tools located here – https://developers.google.com/speed/webp/download
VIdeo Demonstration:https://drive.google.com/file/d/1vaAnB- … sp=sharing
Read description for details.

Description: While more useful for users of older PSP software looking to edit WebP files, these scripts can be used to import and export WebP files that PSP can’t load or save currently (as of PSP 2023). This includes support for both reading and saving webp images with alpha transparency.

There are two versions of these scripts available for download. The standard one that includes the Google Utiltiies in the download for quick and easy use. OR the Script only version that requires you to download the Google Tools separately. I provided this option in case anyone was concerned about download an executable from an untrusted source like myself.

If you get the first version with the Google Tools built in. Just unzip everything into a folder inside of your Scripts-Trusted Folder (see video). The scripts should just run out of the box. I’ve programmed the script to look in your Scripts-Trusted folder for these programs so there is no need to edit the script. Just unzip and run.

If you get the second version you first need to download the Google Webp Tools from the official location – https://developers.google.com/speed/webp/download

Then unzip them into your scripts-trusted folder along with the Import and Export scripts. Then you can use them as well. Both versions are demonstrated in the Video.

If you already have these programs, or if you don’t want them in your Scripts trusted folder, you can unzip them to any other location on your computer that you want. You just have to edit the scripts to point to the folder where the cwebp.exe and dwebp.exe files are stored. Again, this is demonstrated in the video linked above. To edit the script open it in Notepad or other text editor and look for the line “topDir = None”. You’re going to replace “None” with your path surrounded with double quotes “C:\\Your\\Path\\Here “

You’ll notice in my example I’m using “\\” between each directory name. THis is because the “\” character has special meaning in Python. So you need to use two of them when writing the path. Or you need to put an “r” in front of the first quotation character like this r”C:\Your\Path\Here” the r will let you use single slashes instead of double slashes.

Once you’ve edited the script it’s ready to use.

To use the script just run it from the script toolbar – an Open File dialog will pop-up asking you where to find the webp image. Select the webp or multiple webp images and the script will convert, and open them inside PSP. If you want to save a webP image in the latest format and with transparency support use the ExportWebP script. Again run it from the toolbar a dialog will ask you where you want to save the file and it’ll do the hard work for you.

History Remover

This script was designed to remove the editing history from a PSPImage file. If your file is getting extremely large, or you want to remove the editing history before distribution this script will help.

The official respository is on GitHub – https://github.com/LeviFiction/PSPImageHistoryRemoval

To download use the link below or go to the link above, and click on the green “Code” button and select “Download Zip”

Script Name: PSPImageHistoryRemover
Download Link:Download
Compatibility: X9 – 2022
Requirements: Place in Scripts-Restricted folder

B&W Color Highlighter

This script de-saturates your image and then selectively restores saturation to a range of hues similar to the foreground color in the materials palette. This allows you to select a specific color from the image to retain. It creates a H/S/L adjustment layer so that you can mask out the effect or do some fine tuning on the resultant settings.

A second script is also included BW-2ColorHighlighter that uses the background color as a secondary hue to also retain.

The video demo linked below shows both scripts in action and how they might be used. This method is not perfect, and it won’t always produce the best results.

Script Name: BW-ColorHighlighter
Download Link:https://drive.google.com/open?id=1b20pk … gn5LG2lP9q
Compatibility: PSP8 – 2022
Requirements: Place in Scripts-Restricted folder
Video Demo:https://drive.google.com/file/d/1bqjh35 … Yre0K/view

How It Works:

If you’ve ever attempted to make an image where just one item remains in color and the rest of the image is in geyscale you know how much of a paint it can be unless you have highly specialized tools. Usually you have to duplicate your image to a new layer, then use the eraser tool, or a selection, or mask, to remove the item from the top layer that you want to keep in color. And, if the item you want to keep is multi-colored that’s still mostly true.

This script, however, has the potential to make that job a lot easier by targeting a range of hues that match the hue of your selected color. So if you have a hat that’s all red, or gloves that are all blue, flowers where the lavendar needs to stand out. Use this script as a jumping off point. Sometimes the effect can be subtle, or it’ll pick areas of you didn’t intend it to. Or it’ll leave out areas you wanted to keep. But it’s a place to start, and, if it works well, it might even be a potential one click solution to making a beautiful image.

1 – Open PSP and the image you want to work on. For example here is a photo of a peacock.

I would like to note that this is a boring image and a terrible choice for this effect. It has only a few major colors: Blue, Brown, and Green. The fence is mostly grey and reflects the other colors, the rest are all tones. If we do highlight one color in this image it’ll be fairly boring as the script will not be able to separate out the green of the feathers from the green of the grass. We can really only highlight the blue color for maximum effect.

2 – Next I sample a color (you can also just add one manually in the Materials Palette, but this makes sure I’m sticking to a color that is in the image)

3 – Run the script

4 – Check the results

Here you can see, that one sample of blue let the script highlight all of the major blues in the image. Including the little circles in the tail feathers. From here I can paint in black on the mask of the Highlight layer to pull the peacock out from the background.

More Examples

Here are two more examples. First a photo of my father at Christmas, here the effect is very subtle as I targeted the red hue which makes up the majority of the color, with most of the colors being washed out or muted in this image from his shirt and underlying skin-tones to the bulbs on the tree. But as a result he sticks out just that much more from the rest of the image making a slightly pleasing look. The biggest differences are the removal of the blue cast from the window and the back of his head, and the green just turns into a dark grey that still looks a little green oddly enough.

And in this final example have a statue by John Lopez of Eagle Butte, SD of Ma-Za-Sha (Red Iron) the materials reflecting his name. This gorgeous work was seen at the Granary in Groton SD. I’m not a great photographer, and this is clearly over-saturated. But it still makes a nice image. By selecting the red of the sculpture we can further separate him out from the green background.

I would like to note that for the image above I used the BW – 2ColorHighlighter as the head hands and other places were very blue in color. I set the foreground to red and the background to blue, this also meant that a lot more colors were preserved in the image. So this was definitely not a one click solution. I had to add a B&W version of the image on top and erase the areas I wanted to remain in color, though fortunately with far less precision than I would had I done this all manually.

Blog at WordPress.com.

Up ↑

Create your own website, free on WordPress.com.Create your own website.
Start free