September 14, 2009, 08:59:31 AM

| Welcome, Guest. Please login or register. Did you miss your activation email? Login with username, password and session length

News: ..none. |

|  | Home |  | Chat | Recent | Archive | Help | Members | Login | Register |

Pages: [1] Go Down |

| Send this topic | Print |

| Author | Topic: Automate process to convert all sprites to pcx using Photoshop (Read 2009 times)

Inglourious CyBasterd MFG Network Member Online You created a bad char. I can't accept that ! |

| Automate process to convert all sprites to pcx using Photoshop « on: October 19, 2007, 09:11:53 AM / October 19, 2007, 04:11:53 PM » |

Made this topic so that people can just link to it.
Making a palette and converting from PNG (or any other format) to PCX using an automated process :
Start by putting many sprites on a single image, so that all the colors the char (and the effects, dunno) that will be in the character are on this single image.
Convert it from RGB colors to indexed colors (assuming you have photoshop, paintshop pro should work the same), and put the last color of the palette to be the transparent one (or the first one if you're using PaintShop Pro).
Save the palette. Now you have the palette you'll use for all sprites.
Still assuming you have photoshop, let's now create a batch file. Photoshop has a very powerful tool named "scripts", or "Actions".
Search the window to create a new script, and start registering. All the actions you're going to do now will be recorded, and when you'll launch the script on a folder for example, it will apply all the operations you've registered on all the files of the folder.
Press F9 to open the script (or action) creating window (or you should be able to open a window by clicking in the window section and choosing "Actions"). Now you should see something like that :
- Press button 4 to create a new folder (so that you don't clash with Photoshop's pre-built scripts)
- Press button 5 to create a new script.
Name them wisely to avoid any confusion later on.
- Now you should see that button 2 is pressed. All the actions you're going to do are going to be registered.
You can delete a script by pressing button 6. And when you want to stop registering, press button 1.
So what you should want to record is:
- open a sprite.
- convert it to RGB (if it's in indexed colors. Skip this step otherwise).
- Convert it back to indexed colors.
- don't chose "exact", but chose "custom" and load the palette you've created before.
- apply this palette.
- save the sprite.
- close it.
Stop recording. Now you have your script.
Search in file -> automate -> batch :
Select the folder you want to use the script on (the folder where all your files are, obviously)
Create another folder, and tell the automated tool to save the outputs in this folder (for the sake of backing up your files).
Launch the script, Photoshop should have all your files converted into PCX with the custom palette in less than 2 minutes.

| Logged

Quote from: Titiln on January 30, 2009, 10:17:24 PM
i too keep in touch with girls through anime porn sites
Quote from: Jesuszilla on February 07, 2009, 03:05:09 PM
TITILN I WANT YOUR COCK INSIDE ME

Frederika Bernkastel~ Contributor Offline [E] |

| Re: Automate process to convert all sprites to pcx using Photoshop « Reply #1 on: October 19, 2007, 09:24:11 AM » |

needs more pics, considering it's intended use

| Logged

Poison's Penis is Schroedinger's Cat
maximilianjenus loves to throw known facts with personal hypothesis and wild guesses in the same post if you haven't noticed

Inglourious CyBasterd MFG Network Member Online You created a bad char. I can't accept that ! |

| Re: Automate process to convert all sprites to pcx using Photoshop « Reply #2 on: October 19, 2007, 09:57:28 AM / October 19, 2007, 04:57:28 PM » |

Okay, will do so. I'll also try to add more details. Weekend should be enough to complete it.

| Logged

Quote from: Titiln on January 30, 2009, 10:17:24 PM
i too keep in touch with girls through anime porn sites
Quote from: Jesuszilla on February 07, 2009, 03:05:09 PM
TITILN I WANT YOUR COCK INSIDE ME

4th User Offline relaxing at sunsets of awe while travelling |

| Re: Automate process to convert all sprites to pcx using Photoshop « Reply #3 on: December 07, 2007, 06:48:26 PM / December 07, 2007, 11:48:26 PM » |

I have Photoshop 7.0, when I save a pic as a pcx while recording the script, the name of the pcx is recorded too ...thus the name applies for all the files after launching the script on them which leads in a single file existing in the output folder due to overwriting
BTW when I save sprite.png as a pcx, it ends up with this sprite.png.pcx, it's very disturbing so I should erase that ".png" for evey pcx, anything about how to get this solved ?
I don't play with Photoshop that often, so forgive my...

| Logged

the good question is, what is the good question?
"Dentists." - Bill Cosby

Renzo Hanamura MFG Network Member Offline . |

| Re: Automate process to convert all sprites to pcx using Photoshop « Reply #4 on: December 07, 2007, 10:31:13 PM / December 07, 2007, 04:31:13 PM » |

I have an Action Group that converts all the layers from an image (in fact up to 30 layers) to PCXs using the last palette used when converting an image to 8bit.
Maybe you are interested Cybs:
http://mugenguild.com/~renzo/down/renzo.7z

| Logged

Of course, sig by Lady Tempest
Quote from: Messatsu on April 19, 2009, 10:56:47 PM
I'm having a hard time figuring out why Seth copied the SPD when he should have copied Zangief's lariats.
Click here - http://blog.pucp.edu.pe/machacabotones

Inglourious CyBasterd MFG Network Member Online You created a bad char. I can't accept that ! |

| Re: Automate process to convert all sprites to pcx using Photoshop « Reply #5 on: December 12, 2007, 03:55:36 AM / December 12, 2007, 10:55:36 AM » |

Quote from: Blumentopf niggard dmagh ZZAB on December 07, 2007, 06:48:26 PM
I have Photoshop 7.0, when I save a pic as a pcx while recording the script, the name of the pcx is recorded too ...thus the name applies for all the files after launching the script on them which leads in a single file existing in the output folder due to overwriting
Are you sure you just clicked on "save image as" and just chose PCX in all the format options ? Don't touch the filename before chosing the format.
@ Renzo : thanks, that can be handy.

| Logged

Quote from: Titiln on January 30, 2009, 10:17:24 PM
i too keep in touch with girls through anime porn sites
Quote from: Jesuszilla on February 07, 2009, 03:05:09 PM
TITILN I WANT YOUR COCK INSIDE ME

Renzo Hanamura MFG Network Member Offline . |

| Re: Automate process to convert all sprites to pcx using Photoshop « Reply #6 on: December 12, 2007, 09:48:00 PM / December 12, 2007, 03:48:00 PM » |

If you want some directions on how to use the actions catch me up @ msn. You know, I have weird ways to do things like these.

| Logged

Of course, sig by Lady Tempest
Quote from: Messatsu on April 19, 2009, 10:56:47 PM
I'm having a hard time figuring out why Seth copied the SPD when he should have copied Zangief's lariats.
Click here - http://blog.pucp.edu.pe/machacabotones

Iori Fue User Offline |

| Re: Automate process to convert all sprites to pcx using Photoshop « Reply #7 on: December 24, 2007, 02:53:32 AM » |

a vary easy way is to download alsee.. it can convert them way quicker then photoshop.. once (before my comp got slow) i converted 700 in under 6 seconds

| Logged

Pages: [1] Go Up |

| Send this topic | Print |

Jump to:

| Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC |

Page created in 0.22 seconds with 22 queries.
Loading...