Help with custom selection size invocation

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Post Reply
sam
Posts: 5
Joined: Fri Jan 20, 2006 10:30 pm

Help with custom selection size invocation

Post by sam »

I've got a large (really large) number of images that must all be cropped to the same size. I know how to create a custom selection size and invoke it via the context menu and the 'c' key, but am looking for a quicker way. A hotkey would do the trick, but I don't believe there is one for this function.

Any recommendations on how to do this?
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

New…

Post by Clo »

:) Hello !

- You could try with the 1.82 RC2 version on tests currently :

Tools menu >> Batch convert… >> Tab “Transformations>> Crop

- Anyway, I advise you to make a backup of your files to test that function…
with a limited amount of pictures prior.

:mrgreen: Kind regards,
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
Dreamer
XnThusiast
Posts: 4608
Joined: Sun Jul 25, 2004 9:08 pm

Post by Dreamer »

What exactly do you need?

There are shortcuts for:

Crop - Ctrl+Y
Automatic crop - Shift+Y

Maybe <Y> hotkey would be better than <C>?

There is also Batch convert (Ctrl+U)...
sam
Posts: 5
Joined: Fri Jan 20, 2006 10:30 pm

Post by sam »

Thanks, guys for the fast replies. To clarify what I'm asking, here's what I currently doing:

First: Save a custom selection size, set to the size I want all my images cropped.

Then, for each image:
1) Open image
2) Right click in image, and elect "Set Selection size -> custom"
3) Use control-drag to position the selection frame properly. (This necessary step makes it hard/impossible to run this process as a batch.)
4) Click 'Crop' toolbar button.
5) Save image.

My goal is to make step #2 a one-click or one-keystroke operation.
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Post by marsh »

sam wrote: First: Save a custom selection size, set to the size I want all my images cropped.
Custom for printing? Or would you want custom defined in pixels?
http://newsgroup.xnview.com/viewtopic.php?t=1779&#14481
Dreamer
XnThusiast
Posts: 4608
Joined: Sun Jul 25, 2004 9:08 pm

Post by Dreamer »

sam wrote:Thanks, guys for the fast replies. To clarify what I'm asking, here's what I currently doing:

First: Save a custom selection size, set to the size I want all my images cropped.

Then, for each image:
1) Open image
2) Right click in image, and elect "Set Selection size -> custom"
3) Use control-drag to position the selection frame properly. (This necessary step makes it hard/impossible to run this process as a batch.)
4) Click 'Crop' toolbar button.
5) Save image.

My goal is to make step #2 a one-click or one-keystroke operation.
2) Do you really want "Set Selection size -> custom"? If so, you can use <c> hotkey, or do you want "Save selection as custom"?

4) You can use shortcut here too - <Ctrl+Y>

5) And here too - <Ctrl+S> (or Save as - <Ctrl+Shift+S>)
Guest

Post by Guest »

I'm cropping a large group of images to match an existing (and much larger) group of images. All images must be the same size (in pixels). I've got a custom selection size set to the desired pixel dimensions.

I'm not sure what the <C> hotkey is. I know that when I right-click on the image and highlight "Set Selection Size", I can then hit the "C" key to select the "Custom" item on the selection size submenu. I can also select the "Custom" menu entry with the mouse.

Otherwise, the "C" key has no effect if the context menu is not displayed. (Actually, hitting "C" when the context menu is displayed causes the window to close - not what I want. "C" only works when the context menu is up and the selection size subnmenu is also up.)
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Post by marsh »

Custom key does not use pixels (it is for printing), but my link above is a request which may make your work a little easier.

Meanwhile, here is the way I crop many images to 1024x768:
Use fullscreen. Press <*>. Drag mouse from one corner to another of screen and press <ctrl y>. v.1.82 will have lossless jpg cropping in fullscreen <ctrl shift y>.

If you want just smaller versions of larger images (without chopping off parts of image), you should use the "resize function". <shift s>. This is also available in batch convert. <ctrl u>. You can process hundreds of images quickly doing this.
Post Reply