Hi
I am using Paint Shop Pro X6 on a 32 bit, Windows 7 machine.
I need to shrink approx. 4,000 files for use on an electronic photo frame. The native resolution of the frame is 1024 x 768.
My photos range from old historical scanned pictures up to 8 Mb camera photos. Naturally some photos are portrait and some are landscape.
I know how to record a script and then batch process the script.
I recorded a script using a landscape photo to record the scrip on.
I selected "lock aspect ratio" and changed the height to 768 pixels
The width automatically changed to 1024
When I run the script, all the landscape photos were perfect but the portrait photos were stretched to the width of the frame.
I then recorded a script using a portrait photo and again changed the height to 768 pixels
When I run the script, all the portrait photos are fine but the landscape photos are condensed in width
What am I doing wrong?
Thanks in advance
Difficulty with batch resize script
Moderator: Kathy_9
-
Fieldmouse48
- Posts: 5
- Joined: Sat May 09, 2015 9:46 am
- System_Drive: C
- 32bit or 64bit: 32 Bit
- motherboard: ASUSTeK Computer INC. P7P55D Rev 1.xx
- processor: 2.67 gigahertz Intel Core i5 750
- ram: 3584 MB
- Video Card: NVIDIA GeForce GTS 250
- sound_card: NVIDIA Virtual Audio Device
- Hard_Drive_Capacity: 2896 GB
- Monitor/Display Make & Model: HP Compaq LA2206x
- Corel programs: Paintshop Pro X8
- hartpaul
- Advisor
- Posts: 2893
- Joined: Tue Mar 20, 2012 3:38 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: ASUSTeK P7P55D STRIX B240F GAMING
- processor: IntelCore i7 7700 3.60 Ghz
- ram: 8 Gb
- Video Card: Nvidia GeForce GTX 1050
- sound_card: Nvidia High Definition Audio
- Hard_Drive_Capacity: 1000 Gb
- Monitor/Display Make & Model: AOC
- Corel programs: PSP8,X2 to X9,2018,2019,2020
- Location: Australia
Re: Difficulty with batch resize script
If the photos are not in the same proportion of 1024 x 768 then they will not fit properly. You will need to crop any images that are outside that proportion to the same proportion.
PSP does not have the feature to do what you are asking without a special script. I have had the same problems with preparing images to display at Camera Clubs where the projector was set for 1024 x 768.
I use Irfanview for batch resizing as it has what I believe should be included with PSP "Set long side to ___" and "Set short side to ____"
I think Levifiction did a script to do this some time back when a similar problem was brought up.
PSP does not have the feature to do what you are asking without a special script. I have had the same problems with preparing images to display at Camera Clubs where the projector was set for 1024 x 768.
I use Irfanview for batch resizing as it has what I believe should be included with PSP "Set long side to ___" and "Set short side to ____"
I think Levifiction did a script to do this some time back when a similar problem was brought up.
Systems available Win7, Win 8.1,Win 10 Version 1607 Build 14393.2007 & version 20H2 Build 19042.867
-
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: Difficulty with batch resize script
The reason is when you record the script PSP also records to aspect ratio of the current image along with the resulting width or height so the end result size is always exactly the same as your original image.
I would also use Ifranview as hartpaul suggested as it is very good with lots of options. Also because I lost my script and too lazy to make another. xD
EDIT:
Okay, I got off my lazy butt and made a new script. It's still not pretty, and has fewer features than my original, but it works.
Also, I made a video demonstrating how to use it. Though it's pretty easy.
https://www.youtube.com/watch?v=Njxsr2NixoI
I still recommend Ifranview.
I would also use Ifranview as hartpaul suggested as it is very good with lots of options. Also because I lost my script and too lazy to make another. xD
EDIT:
Okay, I got off my lazy butt and made a new script. It's still not pretty, and has fewer features than my original, but it works.
Also, I made a video demonstrating how to use it. Though it's pretty easy.
https://www.youtube.com/watch?v=Njxsr2NixoI
I still recommend Ifranview.
- Attachments
-
- BatchResize.zip
- (857 Bytes) Downloaded 325 times
https://levifiction.wordpress.com/
-
Fieldmouse48
- Posts: 5
- Joined: Sat May 09, 2015 9:46 am
- System_Drive: C
- 32bit or 64bit: 32 Bit
- motherboard: ASUSTeK Computer INC. P7P55D Rev 1.xx
- processor: 2.67 gigahertz Intel Core i5 750
- ram: 3584 MB
- Video Card: NVIDIA GeForce GTS 250
- sound_card: NVIDIA Virtual Audio Device
- Hard_Drive_Capacity: 2896 GB
- Monitor/Display Make & Model: HP Compaq LA2206x
- Corel programs: Paintshop Pro X8
Re: Difficulty with batch resize script
Thank you both, but particularly LeviFiction for providing the script and the You Tube video especially for me.
I really appreciate that.
In my many attempts I tried using 1 for the width, but never thought about -1
I have just done the 4,000 photos and it worked really well
I really appreciate that.
In my many attempts I tried using 1 for the width, but never thought about -1
I have just done the 4,000 photos and it worked really well
-
JoeB
- Posts: 2778
- Joined: Fri Mar 28, 2008 10:04 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: LENOVO 4524PE4 ThinkCentre M91p
- processor: 3.10 gigahertz Intel Quad Core i5-2400
- ram: 8 GB
- Hard_Drive_Capacity: 4.6 TB
- Corel programs: PSP 9, X7 to 2019, 32 & 64-bit
- Location: Canada
Re: Difficulty with batch resize script
I know I'm going to sound like a broken record (and will likely continue to do so until we get a separate sub-group), but wouldn't it be nice if Corel created a Scripting sub-group as a place for these script questions as well as a place for users to be able to find scripts like this one just created by Levi?
If people agree, please visit the Sticky post near the top of the forum and vote in the poll asking whether we should have a Scripting group!
And thanks, Levi, for this script!
And thanks, Levi, for this script!
Regards,
JoeB
Using PSP 2019 64bit
JoeB
Using PSP 2019 64bit
-
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: Difficulty with batch resize script
Setting the width to -1 is specific to this script. I use it to determine which value needs to be calculated and then manually determine the appropriate width, height, and aspect ratio for the resize command. I do not pass -1 to the resize command itself.
Suzsplace.com has lots of wonderful scripts and script examples for things like this. The site actually has an example script dedicated to resizing images with the approrpriate size. Of course its not optimized for batch processing but the example also tells you what code to replace with what other code to make it work.
It's a great resource for anyone looking to learn.
Suzsplace.com has lots of wonderful scripts and script examples for things like this. The site actually has an example script dedicated to resizing images with the approrpriate size. Of course its not optimized for batch processing but the example also tells you what code to replace with what other code to make it work.
It's a great resource for anyone looking to learn.
https://levifiction.wordpress.com/
