Crop

Moderator: jsachs

Post Reply
Marpel
Posts: 748
Joined: September 13th, 2009, 3:19 pm
What is the make/model of your primary camera?: Nikon D810
Location: Port Coquitlam, British Columbia

Crop

Post by Marpel »

Latest version.

I am trying to crop a number of images, which do not necessarily have the same original dimensions, to the same (cropped) size.

However, when I try to use the "Reload Last Settings" it only seems to work between images which start out the same size. If the original dimensions do not match, the results are way off. So a couple questions -

1. Does the program use the Top, Bottom, Left and Right border numbers as reference when completing this process and that is what is sending the process into confusion?
2. Or should the program be using the actual crop size dimensions (which seems logical to me) when doing this process?
3. If the answer to no 1 is Yes, then can you suggest a way to accomplish what I am trying to do without repeatedly moving constraint lines or entering dimensions?
Of course, if the answer to no 2 is Yes then this is not working as it should.
jsachs
Posts: 4874
Joined: January 22nd, 2009, 11:03 pm

Re: Crop

Post by jsachs »

Crop currently works by placing the cropping rectangle in the same relative position in each image, i.e. it records the position of the crop box as fractions of the image width and height. There is no easy workaround for this.

You can however use the Layout transformation to do what you want. First bring up Layout and set Size to the desired output image dimensions in pixels and set Snap Grid to 0. Then add a panel and drag its lower right corner until it fills the entire image. Next set Color/Image to the image you want to crop, and click the button at the top of the dialog box to display both the input and output images side by side. You should see a crop box on the input image. At this point you have several options in terms of how you want to fill the output image.

If you select Fill Panel you can set the crop box location and size but its proportions are fixed to match those of the output image, so you can select what part of the input image you want to appear in the output image. The input image is expanded or shrunk as necessary to fit the dimensions of the output image.

If you select Fit panel - scale 1:1, the size and proportions of the crop box are fixed to match the output image size and you can only move it around, but the input image is never resized. Note that if the input image is smaller than the output image there will be some amount of border left showing since there is no way to make an image larger by cropping.
Jonathan Sachs
Digital Light & Color
jsachs
Posts: 4874
Joined: January 22nd, 2009, 11:03 pm

Re: Crop

Post by jsachs »

For the next release, I have added a "Crop to fill" option to the Size to Fit transformation. Using this option, you get a crop box whose size matches the desired output image size, so you can move it around the input image but not resize it. If the input image is smaller than the output image, borders are added to fill out the output image. This does more or less the same thing as the Layout transformation method but is a lot simpler to use.
Jonathan Sachs
Digital Light & Color
Marpel
Posts: 748
Joined: September 13th, 2009, 3:19 pm
What is the make/model of your primary camera?: Nikon D810
Location: Port Coquitlam, British Columbia

Re: Crop

Post by Marpel »

Perfect, thanks
Post Reply