Eunomiac wrote:I've scribbled up this brief tutorial on how to use crumbl3d's Photoshop Resizer Actions, from importing and using them to resize individual files, as well as how to use Photoshop's "Batch" function to resize a whole folder full of images (including subfolders). This should be quite useful for people who want, say, a 64x version of a texture patch that's only been released in 128x.
Feel free to edit it into the original post, or as a readme in the download actions, if you think it's appropriate, and let me know if there's a better/easier way to do what I'm describing:
Show Step 1) Import crumbl3d's "Photoshop Resizer Actions" into Photoshop
(Note: These instructions are written using Photoshop CS5. There shouldn't be any major differences between releases, but the odd thing might be in a different place or have a slightly different name if you're using another version of Photoshop.)
- Download crumbl3d's Photoshop Resizer Actions, then unzip the archive into a convenient folder on your computer.
- In Photoshop, bring up the Actions palette window with Alt-F9, or by selecting it from the "Windows" drop-down menu.
- Click on the button in the very top right corner of the Actions palette window, and select "Load Actions..." from the drop-down menu.
- Navigate to wherever you unzipped the Action files to, then select the Action that describes the size change you want (e.g. to convert a 128x pack to a 64x pack---a 50% reduction---you would want the "Resizer 50% & Transparency Fix.atn" file). Click "Load" to import the Action.
You should see a new folder at the bottom of the Action palette window, with the same name as the action file you just imported. This folder contains two versions of the resizing Action. The only difference between them is how they handle semi-transparent pixels (like those that appear around the edges of images when they're resized). One will make these pixels wholly opaque, while the other will make them wholly transparent (by deleting them). You may want to try both, then decide which one looks best in-game.
At this point, you're ready to use these actions to resize individual files: Simply open the file you want to resize, select the Action from the Action palette window (either the opaque or transparent version), and hit the "Play selection" (triangle) button at the bottom of the window.
However, if you want to apply this action to a large group of files (i.e. every file in a texture pack), keep reading:
Step 2) Resize an Entire Folder of Images
Important: This process will resize
every image file in the folder you select, including images in subfolders (it simply opens each image one-by-one and applies the Action to it, before moving on to the next). So check each folder and temporarily relocate any images that shouldn't be resized (for example, any "placeholder" textures that are simply copies of the standard 16x textures should be pulled out, or they'll be shrunk down as well).
- Make sure the images you want to resize are unzipped and in a convenient folder on your computer. Note that the instructions below will resize these files, so if you want to retain copies of the originals, back them up in a separate location.
- In Photoshop, click "File" --> "Automate" --> "Batch...". A "Batch" window will pop up.
- Configure the "Batch" window that pops up as follows:
- Set: Select the name of the Action you imported (e.g. "Resizer 50% & Transparency Fix")
- Play: Select the version of the Action you want to apply (i.e. either "Making pixels opaque" or "Making pixels transparent")
- Source: Set to "Folder", then click the "Choose" button and navigate to the folder containing the (unzipped) image files you want to resize.
- Ensure the "Override Action 'Open' Commands" box is NOT checked.
- Ensure the "Include All Subfolders", "Suppress File Open..." and "Suppress Color Profile..." boxes ARE checked.
- Destination: Set to "Save and Close".
- Ensure the "Override Action 'Save As' Commands" box IS checked.
- Click "OK", and watch as Photoshop systematically opens every image file in that folder, applies the resize action to it, then saves and closes the file before moving onto the next. Since many texture pack patches contain thousands of image files, this can take a while. (But it's better than doing it manually!)
- When it's finished (finally!), simply zip up those newly-sized image into a standard texture pack .zip archive.Congratulations, you've just resized a whole texture pack!
Ok I had a go with this Action imported into CS2 but it errors out on every file. I'm guessing also that the Import of the Action bugged out resulting in duplicate actions? Or is this how it looks in CS5 as well?
Show
Maybe it's something I just don't fully understand. Bear with me please I'm a noob to all things graphic really. Are the multiple "Layer Via Copy" and "Merge Visible (s)" suppose to be in this Action? If so what are they doing exactly?
Question Two: Bilinear for resizing rather than Bicubic? Thought I read/heard somewhere to use Bicubic.
Question Three: Was this Action built for .psd's to psd's or png's to png's I'm guessing .png's to png's.
This has helped though I think I can now build an "Action within CS2' to fully automate a patch file.
I really do need to search more for things within bdcraft.net
Edit: Oh BTW the Preview Block Action works well in CS2. CS2 seems to have an Issue overwriting/Saving As .png's Unless stipulated with the action.
Edit Two: Tried these but again I think they are targeted for later releases of photoshop than CS2.
Knew there had to be an .xml editor for the Actions.
This will convert an action file to XML:
[link]
https://ps-scripts.cvs.sourceforge.net/v ... eToXML.jsx[/link]
You can edit this file with a normal text editor.
This will convert an XML file to an action file:
[link]
https://ps-scripts.cvs.sourceforge.net/v ... romXML.jsx[/link]
Left Click will show the code. Right Click Saveas will create a .atn script file.
Original location... [link]
https://forums.adobe.com/message/3039246#3039246[/link]
Just in case someone comes up with a CS2 resize version that works