Batch resizing in PSP X6

Corel Paint Shop Pro

Moderator: Kathy_9

Post Reply
Phil47
Posts: 109
Joined: Thu Feb 25, 2010 12:59 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS Z170-P DDR 4
processor: i-5 6600K OC
ram: 8GB
Video Card: GTX960
sound_card: Realtek High Definition Audio
Hard_Drive_Capacity: 500GB
Monitor/Display Make & Model: Asus MX279
Corel programs: PSP X6 PSP X9 PSP 2018

Batch resizing in PSP X6

Post by Phil47 »

I want to be able to do batch resizing so that the largest length is 1024 pixels.
Why 1024? Because the website I frequently upload to requires a maximum pixel size of 1024 pixels.
Because of that I have standardized everything I upload to anywhere at max 1024 pixels.

When I get into Advanced Settings there are choices of -
1. Smart size
2. Bicubic
3. Bilinear
4. Pixel resize
5. Weighted average.

I am hoping that one of those will do the job.

Can anyone please help?

Thanks in advance.
Tell the truth....but gently.

Phil.
LeviFiction
Advisor
Posts: 6831
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
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: Batch resizing in PSP X6

Post by LeviFiction »

Those are just how the new pixels are calculated. Usually leaving it at Bicubic works well for most.

However, to resize the longest size and keep the aspect ratio of the image is going to take a script if you're doing it with the batch process command. X8 includes a new resize option for resizing only one side, but X6 does not.

Here is a batch resizing script that allows you to set a pixel size for the longest side and it'll work in a batch process.

https://drive.google.com/file/d/0B8FlFL ... sp=sharing

And here is a video where I demonstrate downloading the script, installing it, setting the pixel size, and finally using it in a batch process.

https://drive.google.com/file/d/0B8FlFL ... BjRG8/view
https://levifiction.wordpress.com/
JoeB
Posts: 2778
Joined: Fri Mar 28, 2008 10:04 pm
operating_system: Windows 8.1
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: Batch resizing in PSP X6

Post by JoeB »

Personally I leave the setting on Smart Size and let PSP decide based on the image. :-C
Regards,

JoeB
Using PSP 2019 64bit
Phil47
Posts: 109
Joined: Thu Feb 25, 2010 12:59 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS Z170-P DDR 4
processor: i-5 6600K OC
ram: 8GB
Video Card: GTX960
sound_card: Realtek High Definition Audio
Hard_Drive_Capacity: 500GB
Monitor/Display Make & Model: Asus MX279
Corel programs: PSP X6 PSP X9 PSP 2018

Re: Batch resizing in PSP X6

Post by Phil47 »

JoeB, Thanks but I tried Smart size on one pic and it reset to about 858 pixels on one side which is about only 83% of 1024 and even the slightest attempt to enlarge it showed pixel distortion.

LeviF, It would appear that you have written this script especially for 1024 pixel for the longest(?) side. However, trying to follow your video was too hard for me. I think maybe just manually resizing is much easier even for 100 pics.
I managed to download the script and even extract it but have no idea what to do next.
Tell the truth....but gently.

Phil.
JoeB
Posts: 2778
Joined: Fri Mar 28, 2008 10:04 pm
operating_system: Windows 8.1
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: Batch resizing in PSP X6

Post by JoeB »

Phil47 wrote:JoeB, Thanks but I tried Smart size on one pic and it reset to about 858 pixels on one side which is about only 83% of 1024 and even the slightest attempt to enlarge it showed pixel distortion.
I don't think you understood Levi's post. Those different sizing options you listed (Smart Size, Bicubic, etc) are NOT options to resize images to different sizes. They are different algorithms that determine the way PSP adds or removes pixels when an image is resized. For example, If you have a large image of, say 2400 pixels on a side and want it to only be 1200 pixels on a side then PSP has to remove pixels to resize smaller. The algorithms determine how PSP decides which pixels to remove and still make the image look as good as possible. And if you want to make a smaller image larger then the algorithms determine how to duplicate pixels to add them to the image so that there are more pixels in the resultant larger image. When Smart Size is selected PSP analyzes the image and determines which of the other algorithms is best for the particular image you are resizing (e.g., jpg, gif, blocks of colors or varying gradients, etc.) and whether or not you are upsizing or downsizing.

The actual resizing is done by the number of pixels you enter in the resize dialogue boxes.

This is very basic image editing stuff and the way you have posed the question and your responses unfortunately indicate that perhaps you have to do a bit more research on the basics of image editing. Or perhaps you just haven't expressed the issue you're having in a way that I can understand it.
Regards,

JoeB
Using PSP 2019 64bit
LeviFiction
Advisor
Posts: 6831
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
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: Batch resizing in PSP X6

Post by LeviFiction »

I wrote this script so you can set which side you want. By default Longside is set to 1024 but only because I forgot to change it back after recording the video. If you open the script in Notepad you'll see the four lines I highlight in the video. These are variables, special containers that hold values. Depending on what these values are the script will react differently.

A value of -1 means the item is not set. And you should only ever set one of the four variables to anything larger than -1.

NewWidth - means you want to resize the width of all images and calculate a new height.

NewHeight - means you want to resize the height of all images and calculate a new width

Longside - means you want the longest side of each image to be resized to the value set, and calculate the size of the other side

Shortside - means you want the shortest side of the each image to be resized to the value set, and calculate the size of the other side

So the default setup of
NewWidth = -1
NewHeight = -1
LongSide = 1024
ShortSide = -1

Means you want to resize the longest side to 1024pixels. It'll auto-calculate the short side for you.

In the video I had two images. One was 600x300. The other was 300x600. After the script ran the new sizes of the images was 1024x512 and 512x1024. Demonstrating that the sides maintained their aspect ratio and the longest side was properly resized to the value set in the script.

Once you've edited the one line that you want, just save the script.

Then go into the Batch Process command. This is found under FIle menu. File -> Batch Processs

In the batch Process dialog hit the "Browse" button. It'll ask you to select all of the files you want to batch process. You can add them one at a time, or select multiple files and add them all at once.

Then on the Batch Process dialog make sure the "Use Script" checkbox is selected. This box lets you select a script that will be run once for every single image in the batch.

Then from the scrip drop-down menu select the BatchResize script.

From there you can set how the Batch Process will save. For details on the Batch Process Dialog see the help files.
https://levifiction.wordpress.com/
Phil47
Posts: 109
Joined: Thu Feb 25, 2010 12:59 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS Z170-P DDR 4
processor: i-5 6600K OC
ram: 8GB
Video Card: GTX960
sound_card: Realtek High Definition Audio
Hard_Drive_Capacity: 500GB
Monitor/Display Make & Model: Asus MX279
Corel programs: PSP X6 PSP X9 PSP 2018

Re: Batch resizing in PSP X6

Post by Phil47 »

Edit ScriptWindow.JPG
LeviF,

This is the window I get when I click on the "Edit" button of the Script menu and not that long lot of text you show in your video.
Tell the truth....but gently.

Phil.
LeviFiction
Advisor
Posts: 6831
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
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: Batch resizing in PSP X6

Post by LeviFiction »

Did you select the Batch Resize script? Because that says Resize 1024 piexels at the top. You want to make sure "Batch Resize" is selected in the drop down box next to the play and edit buttons. Because that will be the script that you're working with.
https://levifiction.wordpress.com/
Phil47
Posts: 109
Joined: Thu Feb 25, 2010 12:59 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS Z170-P DDR 4
processor: i-5 6600K OC
ram: 8GB
Video Card: GTX960
sound_card: Realtek High Definition Audio
Hard_Drive_Capacity: 500GB
Monitor/Display Make & Model: Asus MX279
Corel programs: PSP X6 PSP X9 PSP 2018

Re: Batch resizing in PSP X6

Post by Phil47 »

Sorry, but I have no idea where I am now.
Tell the truth....but gently.

Phil.
LeviFiction
Advisor
Posts: 6831
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
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: Batch resizing in PSP X6

Post by LeviFiction »

I'm apparently very bad at describing things. Okay here's another video. In this video I show putting the script into the scripts-restricted folder again. I also show how to select the script on the script toolbar. And I show it opening notepad, I then explain why my script opens in notepad and your script opens in the simple script editor dialog that you posted a picture of.

https://drive.google.com/file/d/0B8FlFL ... hoYWc/view
https://levifiction.wordpress.com/
Phil47
Posts: 109
Joined: Thu Feb 25, 2010 12:59 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS Z170-P DDR 4
processor: i-5 6600K OC
ram: 8GB
Video Card: GTX960
sound_card: Realtek High Definition Audio
Hard_Drive_Capacity: 500GB
Monitor/Display Make & Model: Asus MX279
Corel programs: PSP X6 PSP X9 PSP 2018

Re: Batch resizing in PSP X6

Post by Phil47 »

LeviF,

You are not bad at describing things at all! More likely I find it difficult to follow some detailed instructions especially when they are accompanied by what appears to be slightly different screens.
However, I found that I had not copied your special script into my Scripts Restricted file as you pointed out so I went back and did that. Now all is well and I am about to resize 32 cropped photos.
But before I do this I would like to explain what I would normally do -
Normally I would start with this - IMG_6418.JPG to trimmed = IMG6418T.JPG to resized = IMG6418TR.JPG. This means I have three of the same picture starting with the original picture 1. Original 2. Trimmed 3. Resized.

The only problem (?) is the resized file where I don't expect it will automatically add the 'R' after the 'T' and before the '.JPG'. This means the title will be the same as the title for the Trimmed pic ie IMG_6418T. The only apparent difference is that it will be in a different folder.
However, I noticed there is a function in the "MODIFY" section of the 'New File Name' section at the very bottom of the 'Batch Process' window which might allow some changes but I imagine it will not do what I want it to do - add an 'R' before the '.JPG
Any ideas on that please?

Otherwise I am most grateful for your special help (and patience) in sorting this out for me and especially doing the personal videos for me.
Last edited by Phil47 on Fri Mar 25, 2016 5:58 am, edited 1 time in total.
Tell the truth....but gently.

Phil.
LeviFiction
Advisor
Posts: 6831
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
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: Batch resizing in PSP X6

Post by LeviFiction »

Actually you can. :D

When you click the "Modify" button next to the "New File Name" textbox it'll pop up a dialog where you get to add the elements you want in the new filename. The first one you'll add is DocumentName as that will use the current filename's name. Then you add "Custom Text" and in the custom text you'll place the letter "R" That will add an R to the end of the name. That simple.
https://levifiction.wordpress.com/
Phil47
Posts: 109
Joined: Thu Feb 25, 2010 12:59 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS Z170-P DDR 4
processor: i-5 6600K OC
ram: 8GB
Video Card: GTX960
sound_card: Realtek High Definition Audio
Hard_Drive_Capacity: 500GB
Monitor/Display Make & Model: Asus MX279
Corel programs: PSP X6 PSP X9 PSP 2018

Re: Batch resizing in PSP X6

Post by Phil47 »

LeviF,

You are a genius! Not only that but it adds the "R" (signifying "Resized") before the ".JPG" just in the right place where I had been putting it manually before!

Thank you so much!
Tell the truth....but gently.

Phil.
Post Reply