Approve the Cookies
This website uses cookies to improve your user experience. By using this site, you agree to our use of cookies and our Privacy Policy.
OK
Forums  •   • New posts  •   • RTAT  •   • 'Best of'  •   • Gallery  •   • Gear
Guest
Forums  •   • New posts  •   • RTAT  •   • 'Best of'  •   • Gallery  •   • Gear
Register to forums    Log in

 
FORUMS Post Processing, Marketing & Presenting Photos RAW, Post Processing & Printing 
Thread started 26 Sep 2012 (Wednesday) 04:28
Search threadPrev/next
sponsored links (only for non-logged)

Corel PaintShop Pro X4 - Custom Crop Factor

 
Trugga
Senior Member
Avatar
654 posts
Gallery: 44 photos
Best ofs: 2
Likes: 352
Joined Jan 2011
Location: West Midands, UK
     
Sep 26, 2012 04:28 |  #1

Corel PaintShop Pro X4 - Custom Crop Tool Preset

I've been wondering if this is possible for some time - I worked it out last night.

My PC screen is set to display in 16:9 format, therefore I crop a lot of my images to either 3:2 for printing or 16:9 for desktop display. By default there is no 16:9 option in the Crop Tool.

Here's how to add 16:9 as an option:

In Windows Explorer, navigate to:
...Program Files (x86) > Corel > Corel PaintShop Pro X4 > Languages > EN > Presets > Metric

(Your navigation path might be a little different due to country and installation preferences, but you should get the gist)

There will be a number of * PspScript files - open one in Windows' Notepad, it might look something like this:

from PSPApp import *

def ScriptProperties():
return {
'Author': u'Corel Corporation',
'Copyright': u'Copyright (c) 2003-2004 Corel Corporation All rights reserved.',
'Description': '',
'Host': 'Paint Shop Pro',
'Host Version': '8.00'
}

def Preset_Crop():
return {
'CropRect': ((0,0),2125,1535),
'Mode': App.Constants.CropMode​.CustomPrint,
'Units': App.Constants.CropUnit​s.Centimeters,
'PrintWidth': 18,
'PrintHeight': 13
}

def Do(Environment):
App.Do( Environment, 'Crop', Preset_Crop())

Amend the "cropRect" line to read: 'CropRect': ((0,0),1600,900),
Amend the Printwidth line to read: 'PrintWidth': 16
Amend the PrintHeight line to read: 'PrintHeight': 9

Then, from Notepad, File > Save As and give it a pertinent filename, perhaps; Preset_Crop_16 x 9 cm.PspScript

Start Corel PaintShop Pro X4 and the new crop preset should now be available in the drop-down list.

IMAGE: http://i243.photobucket.com/albums/ff140/Trugga_bucket/Miscellaneous/crop169.jpg

Lawrence



  
  LOG IN TO REPLY
number ­ six
fully entitled to be jealous
Avatar
8,964 posts
Likes: 109
Joined May 2007
Location: SF Bay Area
     
Sep 26, 2012 14:58 |  #2

My first thought was "why not just crop it in free form and save it as a new ratio from the drop down menu?"

Now I see why: for some reason that option no longer exists. Can't save new ratios to the drop down list in X4 or X3.

I had several custom ratios that I'd saved in an earlier version, probably PSP X or X2 - for some reason Corel has eliminated the option.

Irritating!

Thanks for the tip - guess I'll be doing it your way in the future...

-js


"Be seeing you."
50D - 17-55 f/2.8 IS - 18-55 IS - 28-105 II USM - 60 f/2.8 macro - 70-200 f/4 L - Sigma flash

  
  LOG IN TO REPLY
Ramon-uk
Senior Member
835 posts
Gallery: 61 photos
Likes: 368
Joined Mar 2006
Location: Rochester UK
     
Sep 27, 2012 08:59 as a reply to  @ number six's post |  #3

Whilst the above method works I am a bit puzzled.

The figures you have put in "CropRect" are 100 times the print size.

The original figures are approx 118 times the print size ( but not in all cases).

I tried playing with these "CropRect" figures, while the originals are both in proportion to the print size it doesn't seem to make much difference if they aren't.
If you change these to larger values then the image seems to take up more memory (shown in "Image Information") but the image size and pixels per cm remain the same.

Have you any idea what the "CropRect" figures are actually doing.




  
  LOG IN TO REPLY
Trugga
THREAD ­ STARTER
Senior Member
Avatar
654 posts
Gallery: 44 photos
Best ofs: 2
Likes: 352
Joined Jan 2011
Location: West Midands, UK
     
Sep 27, 2012 11:05 as a reply to  @ Ramon-uk's post |  #4

I'll admit my solution is not based on a full understanding of the script system, although I do have a little coding knowledge.

The 'CropRect': ((0,0),1600,900), defines a rectangle, from 0.0 (bottom left) to 1600,900 (top right).

I used a similar size (number) to the samle I chose to make a copy from.

I'm not sure what the print width & height are, but it seemed, prudent to change them.

The file name; Preset_Crop_16 x 9 cm.PspScript appears to gemerate the list item entry (after the _).

It all seems to work (for me at least).

I know I can also specify a custom crop factor in DPP

Lawrence




  
  LOG IN TO REPLY
Ramon-uk
Senior Member
835 posts
Gallery: 61 photos
Likes: 368
Joined Mar 2006
Location: Rochester UK
     
Sep 27, 2012 16:14 |  #5

Trugga wrote in post #15049897 (external link)
I'll admit my solution is not based on a full understanding of the script system,

I can believe that because it does seem a bit strange (the working of the script, not your understanding)

Trugga wrote in post #15049897 (external link)
The 'CropRect': ((0,0),1600,900), defines a rectangle, from 0.0 (bottom left) to 1600,900 (top right).

That makes sense but doesn't seem to apply, try putting different values into these, even 0,0 and you will find that it is the Print width & Height that are controlling the end result.

It is the CropRect that is still a mystery to me.




  
  LOG IN TO REPLY
Wilt
Reader's Digest Condensed version of War and Peace [POTN Vol 1]
Avatar
46,463 posts
Gallery: 1 photo
Likes: 4552
Joined Aug 2005
Location: Belmont, CA
     
Sep 27, 2012 18:08 |  #6

It might be than CropRect simply defines the default starting position and extents at the other corner of the crop rectangle which is visually superimposed and to be applied to the image; you might have (300,300) and (1900,1200) for example as the abolute coordinations of the rectangle displayed more centrally rather than assuming it starts in one corner.

OTOH, the two numbers might represent the starting position, and then the size, so that (300,300) starts the rectangle, and (1600,900) is the delta value from the starting location which defines the rectangle default position.


You need to give me OK to edit your image and repost! Keep POTN alive and well with member support https://photography-on-the.net/forum/donate.p​hp
Canon dSLR system, Olympus OM 35mm system, Bronica ETRSi 645 system, Horseman LS 4x5 system, Metz flashes, Dynalite studio lighting, and too many accessories to mention

  
  LOG IN TO REPLY
Ramon-uk
Senior Member
835 posts
Gallery: 61 photos
Likes: 368
Joined Mar 2006
Location: Rochester UK
     
Sep 28, 2012 05:05 |  #7

Wilt wrote in post #15051473 (external link)
It might be than CropRect simply defines the default starting position and extents at the other corner of the crop rectangle which is visually superimposed and to be applied to the image; you might have (300,300) and (1900,1200) for example as the abolute coordinations of the rectangle displayed more centrally rather than assuming it starts in one corner.

OTOH, the two numbers might represent the starting position, and then the size, so that (300,300) starts the rectangle, and (1600,900) is the delta value from the starting location which defines the rectangle default position.

Both of your suggestions are quite logical but ....

Putting values of (0,0)0,0 [or any other numbers] into CropRect makes no apparent difference either to where the crop box appears on the screen or to the size or aspect ratio of the resultant crop.




  
  LOG IN TO REPLY
Ramon-uk
Senior Member
835 posts
Gallery: 61 photos
Likes: 368
Joined Mar 2006
Location: Rochester UK
     
Sep 28, 2012 05:45 as a reply to  @ Ramon-uk's post |  #8

I don't know why we are bothering with this when PSP X4 will do it for you:

1. Open crop tool

2. Select Free Form

3. Adjust width and Height in boxes on toolbar

4. Select maintain aspect ratio

5. click on Presets on toolbar

6. click on disk icon, name your new preset and save it


Just out of interest take a look at the new script file you've just produced.
It's at MyDocuments/CorelPaint​shopPro/14.0/Presets

Now try to understand the CropRect and print size figures !




  
  LOG IN TO REPLY
Wilt
Reader's Digest Condensed version of War and Peace [POTN Vol 1]
Avatar
46,463 posts
Gallery: 1 photo
Likes: 4552
Joined Aug 2005
Location: Belmont, CA
     
Sep 28, 2012 10:07 |  #9

Ramon-uk wrote in post #15053072 (external link)
Both of your suggestions are quite logical but ....

Putting values of (0,0)0,0 [or any other numbers] into CropRect makes no apparent difference either to where the crop box appears on the screen or to the size or aspect ratio of the resultant crop.

<shrug> so CropRect and its implementation are still a mystery.


You need to give me OK to edit your image and repost! Keep POTN alive and well with member support https://photography-on-the.net/forum/donate.p​hp
Canon dSLR system, Olympus OM 35mm system, Bronica ETRSi 645 system, Horseman LS 4x5 system, Metz flashes, Dynalite studio lighting, and too many accessories to mention

  
  LOG IN TO REPLY
number ­ six
fully entitled to be jealous
Avatar
8,964 posts
Likes: 109
Joined May 2007
Location: SF Bay Area
     
Sep 28, 2012 14:23 |  #10

Ramon-uk wrote in post #15053121 (external link)
I don't know why we are bothering with this when PSP X4 will do it for you:

1. Open crop tool

2. Select Free Form

3. Adjust width and Height in boxes on toolbar

4. Select maintain aspect ratio

5. click on Presets on toolbar

6. click on disk icon, name your new preset and save it


Just out of interest take a look at the new script file you've just produced.
It's at MyDocuments/CorelPaint​shopPro/14.0/Presets

Now try to understand the CropRect and print size figures !


Aha! So that's where they moved it!

-js


"Be seeing you."
50D - 17-55 f/2.8 IS - 18-55 IS - 28-105 II USM - 60 f/2.8 macro - 70-200 f/4 L - Sigma flash

  
  LOG IN TO REPLY
sponsored links (only for non-logged)

5,571 views & 0 likes for this thread, 4 members have posted to it.
Corel PaintShop Pro X4 - Custom Crop Factor
FORUMS Post Processing, Marketing & Presenting Photos RAW, Post Processing & Printing 
AAA
x 1600
y 1600

Jump to forum...   •  Rules   •  Forums   •  New posts   •  RTAT   •  'Best of'   •  Gallery   •  Gear   •  Reviews   •  Member list   •  Polls   •  Image rules   •  Search   •  Password reset   •  Home

Not a member yet?
Register to forums
Registered members may log in to forums and access all the features: full search, image upload, follow forums, own gear list and ratings, likes, more forums, private messaging, thread follow, notifications, own gallery, all settings, view hosted photos, own reviews, see more and do more... and all is free. Don't be a stranger - register now and start posting!


COOKIES DISCLAIMER: This website uses cookies to improve your user experience. By using this site, you agree to our use of cookies and to our privacy policy.
Privacy policy and cookie usage info.


POWERED BY AMASS forum software 2.58forum software
version 2.58 /
code and design
by Pekka Saarinen ©
for photography-on-the.net

Latest registered member is semonsters
1473 guests, 131 members online
Simultaneous users record so far is 15,144, that happened on Nov 22, 2018

Photography-on-the.net Digital Photography Forums is the website for photographers and all who love great photos, camera and post processing techniques, gear talk, discussion and sharing. Professionals, hobbyists, newbies and those who don't even own a camera -- all are welcome regardless of skill, favourite brand, gear, gender or age. Registering and usage is free.