I have thousands of images and I want to create a resized copy of each in a new tree, is there a way of using scripts to traverse a tree of folders, resize each image and create the new image in a new folder tree? I know this is quite advanced but doing it manually (even with scripts) would take ages.
Thanks in advance.
//*Ergin
Script to process all files in all sub-folders
Moderator: Kathy_9
-
LeviFiction
- Advisor
- Posts: 6831
- Joined: Thu Oct 02, 2008 1:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Alienware M17xR4
- processor: Intel Core i7-3630QM CPU - 2_40GH
- ram: 6 GB
- Video Card: NVIDIA GeForce GTX 660M
- sound_card: Sound Blaster Recon3Di
- Hard_Drive_Capacity: 500GB
- Corel programs: PSP: 8-2023
- Location: USA
Re: Script to process all files in all sub-folders
Yes there is.
A script would have to be placed into the Scripts-Trusted folder for that kind of access. But because PSP uses the Python scripting language there is a lot it can do if you want to take the time to program it.
In fact the script guide provided by Corel includes some sample code for processing files in a folder. And Suz's Place has some great scripting resources. Suzplace.com
Like this one, that demonstrates how to process a whole folder and change the JPG compression value.
http://suzsplace.com/8scripts/ss-Compre ... etSize.htm
Knowledge of how Python accesses folder and filenames is a great place to start.
A script would have to be placed into the Scripts-Trusted folder for that kind of access. But because PSP uses the Python scripting language there is a lot it can do if you want to take the time to program it.
In fact the script guide provided by Corel includes some sample code for processing files in a folder. And Suz's Place has some great scripting resources. Suzplace.com
Like this one, that demonstrates how to process a whole folder and change the JPG compression value.
http://suzsplace.com/8scripts/ss-Compre ... etSize.htm
Knowledge of how Python accesses folder and filenames is a great place to start.
https://levifiction.wordpress.com/
-
eggbox
- Posts: 3
- Joined: Sat Jan 08, 2011 10:55 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- processor: i7-3770
- ram: 24GB
- Video Card: ATI Radeon HD 3600
- sound_card: Realtek
- Hard_Drive_Capacity: 1500GB
- Monitor/Display Make & Model: Dell ST2420L (HDMI)
Re: Script to process all files in all sub-folders
So PSP scripts are just Python programs, cool, I haven't done any Python in the past so it looks like time to learn something new, thanks for the information.
//*Ergin
//*Ergin
