[PSPX3U] recolouring png sprites

Corel Paint Shop Pro

Moderator: Kathy_9

Post Reply
Kappes Buur
Posts: 12
Joined: Mon Mar 21, 2011 9:56 pm
operating_system: Windows 7 Professional
System_Drive: C
32bit or 64bit: 64 Bit

[PSPX3U] recolouring png sprites

Post by Kappes Buur »

I have 77 png images of a sprite character and would like to recolour them with the least amount of effort.

The procedure I used so far was to recolour one sprite,

for example from this Image to this Image and then applied the palette of the new image to all the others. However, during that tedious process I lost the offset information of the original images, which was reset to 0, 0.

For the future, is there a more friendly way of doing this and retain the offset information ?
df
Posts: 1224
Joined: Mon Feb 08, 2010 11:21 pm
operating_system: Windows 11
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: GIGABYTE Z690 AERO G DDR4
processor: 13th Gen Intel Core i7-13700K
ram: 64gb
Video Card: RTX 3060 Ti 8gb GDRR6
Hard_Drive_Capacity: 1 Tb
Location: Washington State
Contact:

Re: [PSPX3U] recolouring png sprites

Post by df »

One way of many:

Create second layer, Color blending mode, 33% opacity.
Fill second layer with a color.
Either note which color you use on your Materials Palette or open your Mixer Palette (Shift + F6) and place the color there for later retrieval on later sprites.

You can adjust the opacity of the layer or the blending mode but this should get you going.
Regards, Dan

"Smoke me a kipper, I'll be back for breakfast."
Kappes Buur
Posts: 12
Joined: Mon Mar 21, 2011 9:56 pm
operating_system: Windows 7 Professional
System_Drive: C
32bit or 64bit: 64 Bit

Re: [PSPX3U] recolouring png sprites

Post by Kappes Buur »

df wrote:One way of many: ....
Thank you for that explanation.


However, what I was driving at was a procedure to automate the conversion process. Handling 77, or however many, images individually, to do exactly the same thing, is too time consuming not to mention too tedious. I'm surprised that PSP does not have a batch conversion routine.

As to PNG offsets, it looks like that PSP does not know about some PNG chunks, other than the mandatory ones. Anyways, at least PSP can handle the PNG image itself.
df
Posts: 1224
Joined: Mon Feb 08, 2010 11:21 pm
operating_system: Windows 11
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: GIGABYTE Z690 AERO G DDR4
processor: 13th Gen Intel Core i7-13700K
ram: 64gb
Video Card: RTX 3060 Ti 8gb GDRR6
Hard_Drive_Capacity: 1 Tb
Location: Washington State
Contact:

Re: [PSPX3U] recolouring png sprites

Post by df »

Record a script with your adjustments. (View> Toolbars> Script if the script toolbar isn't visible).

Click Record, perform your adjustments (global adjustments work better than localized ones. i.e. adjusting color vs cloning out skin imprefections), when you're done click Save (looks like a 3.5" floppy disk), name it.

If you don't need to make adjustments as it runs just run it.
File> Batch Process.
Browse to find your donor files.
Check Use Script, find your script you've recorded.
Save options (review everything here including Options, not necessarily set the same as the rest of the program. i.e. if your jpegs are set at the lowest compression this may be set to the default of 20).
For the save to location click Folder: Browse.
Click Start.

If you need to adjust one thing or another and not every single step along the way, before you go into the Batch Process option click the Edit Selected Script and change the one thing or the other to Interactive. Note that if the adjustment says that it's not editable this won't do any good and you'd need to create another unique script.
Whichever way you have the script set will be how the script runs when you batch process.

If you want to make the decision at every single step (a pain with a large number of images) then you can click the Toggle Excecution Mode before you start the Batch Process. Again, which ever way the script is set to run is how it will run once you start the Batch Process. So if you accidentally leave this checked you'll be wishing you hadn't.

I don't work with PNGs nearly enough to offer any but basic advice on them.
Regards, Dan

"Smoke me a kipper, I'll be back for breakfast."
teknisyan
Posts: 2421
Joined: Wed Oct 06, 2010 4:18 pm
operating_system: Windows 7 Home Premium
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Sony Corporation VAIO
processor: Intel Corel i5
ram: 4 GB
Video Card: ATI Mobility Radeon HD 5650
sound_card: Realtek HD Audio
Hard_Drive_Capacity: 500 GB
Location: Riyadh, KSA
Contact:

Re: [PSPX3U] recolouring png sprites

Post by teknisyan »

Another way is to record the process as a script then use that script when you are about to process or convert other sprites. Here are some information regarding recording scripts and scripts on PSP X4, just visit http://pnoy.me/hB
Like reading blogs?
About Tech
About Sports
Pnoy.Me - A URL Shortener
Follow me on Facebook & Twitter
Post Reply