Resize and crop

Moderator: Kathy_9

Post Reply
earthshaker
Posts: 38
Joined: Wed Dec 25, 2013 3:12 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
processor: Athlon quad corenm3.66gHz
ram: 16GB
Video Card: 4 GB Nvidia GeForce GTX745
Hard_Drive_Capacity: 1TB
Monitor/Display Make & Model: AOC 12269Vw

Resize and crop

Post by earthshaker »

I have been shooting interval shots for timelapse videos. I have manually resized and cropped and did pretty poorly the time involved is crazy. I tried to record a script that would resize to 1280px then crop to 1280X720, it worked once then it cropped the wrong portion of the photos, and I ended up with unusable photos, fortunately I copied them all. here is what I need to do resize from 6000X4000 to 1280px wide, then crop from the CENTER to get the needed 720px tall. That is basically it if I figure this out I might add some steps to the process.
Any thoughts?
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: Resize and crop

Post by LeviFiction »

Three questions:
1) What version of PSP are you using?
2) Are all images exactly the same size?
3) Is it always cropping in the upper left corner? Or how exactly does the crop fail?

Technically this script should do exactly what you're looking for. But it was recorded in X8 so I don't know if that will cause any problems if you're using an older version. But it assumes that your images are all exactly 6000x4000. It's really not anything different than what you would have recorded yourself. I did make centering the crop a little more "intelligent" but that's just because I didn't want to center it manually. I'm very lazy.
Attachments
CropAndResize.zip
(815 Bytes) Downloaded 266 times
https://levifiction.wordpress.com/
earthshaker
Posts: 38
Joined: Wed Dec 25, 2013 3:12 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
processor: Athlon quad corenm3.66gHz
ram: 16GB
Video Card: 4 GB Nvidia GeForce GTX745
Hard_Drive_Capacity: 1TB
Monitor/Display Make & Model: AOC 12269Vw

Re: Resize and crop

Post by earthshaker »

PSPX6, the images are the same size, it was cropping the upper left corner. I will try the script you posted and see what happens.
earthshaker
Posts: 38
Joined: Wed Dec 25, 2013 3:12 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
processor: Athlon quad corenm3.66gHz
ram: 16GB
Video Card: 4 GB Nvidia GeForce GTX745
Hard_Drive_Capacity: 1TB
Monitor/Display Make & Model: AOC 12269Vw

Re: Resize and crop

Post by earthshaker »

I tried the script and on the images I used it on weren't as sharp as the source images, it worked just not as well as I had hoped. I tried to record a new script, that in this case worked fair, I added a couple of steps. here is a link to the end result https://youtu.be/SnIg7EQninI
Post Reply