Luminous Landscape Forum

Raw & Post Processing, Printing => Digital Image Processing => Topic started by: mbalensiefer on September 22, 2010, 11:36:55 pm

Title: Crop aspect ratio
Post by: mbalensiefer on September 22, 2010, 11:36:55 pm
I'd like to keep a default 2/3 aspect ratio in all of my crops. However, when I "finish" my crop (i.e. hit enter), the image is resized as well. I'd like to keep aspect ratio but not have to resize.
 How do I do this?

Thank you!
Michael
Title: Re: Crop aspect ratio
Post by: Jeremy Roussak on September 23, 2010, 03:37:34 am
I'd like to keep a default 2/3 aspect ratio in all of my crops. However, when I "finish" my crop (i.e. hit enter), the image is resized as well. I'd like to keep aspect ratio but not have to resize.
 How do I do this?

Thank you!
Michael
What software?

Jeremy
Title: Re: Crop aspect ratio
Post by: mbalensiefer on September 23, 2010, 03:46:13 am
Photoshop standard CS5 64-bit, on Win.:P
Title: Re: Crop aspect ratio
Post by: Slobodan Blagojevic on September 23, 2010, 09:19:26 am
Not sure I understand what you mean by "resize". Lets say, for the simplicity sake, your original is 2400 x 3600 px and you crop it, keeping the same aspect ratio, to, say, 2000 x 3000... obviously, when you crop, you are changing the size, by definition. Are you saying you want to have the same file size, i.e., 2400 x 3600, even after cropping? If that is the case, you would need to uprez (resample) after cropping.
Title: Re: Crop aspect ratio
Post by: mbalensiefer on September 23, 2010, 09:51:35 am
Hi!

 I "only" want to keep one aspect ratio. I do not want to resize, at all.:))

Thank you!
Michael
Title: Re: Crop aspect ratio
Post by: Slobodan Blagojevic on September 23, 2010, 10:09:07 am
... I "only" want to keep one aspect ratio. I do not want to resize, at all...

That is impossible. When you crop, you change the size by definition.
Title: Re: Crop aspect ratio
Post by: mbalensiefer on September 23, 2010, 11:04:42 am
I don't mind changing my images' dimensions via aspect ratio correction.
 I "do" mind having all my images end up at the exact same H/W dimension sizes.

1) I would like to crop many of my images to have the same aspect ratio.

2) I would not like to have all these images be the exact same H/W dimensions.

Is this possible?

Thanks!
Mike
Title: Re: Crop aspect ratio
Post by: JeanMichel on September 23, 2010, 12:30:21 pm
Hi,
In PS (i use CS4) you can set the width, height and resolution for the crop tool. If you set all 3 parameters and crop, the image will resize. If you only set the width and height parameters and leave the resolution blank, you will end up with a cropped image (say a 9 by 6 crop at 300 ppi from a 12 by 18 at 300 ppi) at the original resolution: smaller physical and file size, no loss of resolution since you are not enlarging the cropped portion to fit the original image size.

As far as I know there is no way to tell PS to crop by ratio, except for making a square crop by pressing 'shift' as you drag the tool. You either enter values in the width, height, resolution or leave them blank and freeform the crop -- you can use he info palette to see the size of the crop s you drag.

If you start with RAW files, you can crop in Camera Raw using ratios, when you open the file in PS you will have the smaller image at the native resolution.

Jean-Michel
Title: Re: Crop aspect ratio
Post by: mbalensiefer on September 23, 2010, 07:53:07 pm
Thank you, Jean Michel.

 So with the crop tool basically there is no way to crop by aspect ratio alone--without resizing all images into the same Height and Width dimensions as well.

 I think this is worth writing Adboe about. :P

Thank you!
~Michael
Title: Re: Crop aspect ratio
Post by: Slobodan Blagojevic on September 23, 2010, 09:46:19 pm
... So with the crop tool basically there is no way to crop by aspect ratio alone--without resizing all images into the same Height and Width dimensions as well...

Still not sure what you are trying to do (or why), but the above is not entirely correct. If you enter your ratio into the Height and Width field of the Crop tool (say 3 for Width and 2 for Height), while leaving the Resolution field blank, you can then crop to your heart's content and the ratio will always be 2/3.. what is going to change is the pixel dimension of the file (in other words, images will not have the same pixel dimensions, just the same 2/3 ratio).
Title: Re: Crop aspect ratio
Post by: mbalensiefer on September 23, 2010, 10:02:15 pm
Hi Slobodan,

 When I put my entries into the Width or the Height boxes in Photoshop CS5, then these entries in turn change those numbers into "pixels"...therefore, when I go:

W: 50
H: 100

And then finish (ie hit Enter)...

 My end result is 50 by 100 pixels. Every time. Not 1:2...but 50*100 pixels.
Is this not your results as well?

V/R
Michael
Title: Re: Crop aspect ratio
Post by: Slobodan Blagojevic on September 23, 2010, 10:10:56 pm
... When I put my entries into the Width or the Height boxes in Photoshop CS5, then these entries in turn change those numbers into "pixels"...

Go to: Photoshop>Preferences>Units & Rulers>Units>Rulers and change the value from "pixels" to "inches" (this is for CS4... I assume something similar works for CS5).
Title: Re: Crop aspect ratio
Post by: aduke on September 23, 2010, 10:23:17 pm
Go to: Photoshop>Preferences>Units & Rulers>Units>Rulers and change the value from "pixels" to "inches" (this is for CS4... I assume something similar works for CS5).

In addition, you need to make sure that "Resample" is not on.

Alan
Title: Re: Crop aspect ratio
Post by: mbalensiefer on September 23, 2010, 10:36:30 pm
Hi!

 I may be getting closer...where is "Resample" at?

Title: Re: Crop aspect ratio
Post by: Wayne Fox on September 24, 2010, 12:10:44 am
So with the crop tool basically there is no way to crop by aspect ratio alone--without resizing all images into the same Height and Width dimensions as well.

 I think this is worth writing Adboe about. :P

 I may be getting closer...where is "Resample" at?
There is no resample to turn off if you are using the crop tool.  And yes, you can use the crop tool to constrain a crop to an aspect ratio without resizing the image to a set dimension.

As has been explained, there are three numbers you can enter - before you create your selection.  If you enter only a width and height number, this will constrain the selection to that aspect ratio.  If you enter 4px and 5px or 4000px x5000px or 8"x10" , you will get a 4x5 ratio. If you want a 2 x 3 ratio, just enter 2 and 3.  The numbers don't matter ... all that matters is the ratio between the two.  As long as you don't enter a number in the resolution box, then all that will happen is your selection rectangle will be constrained to that ratio, and your image will be cropped to the selection with any resizing.  Obviously the pixel dimension is now changed, as is the "size" (which is an irrelevant number anyway until you output the image).  But each image will be a different size based on how much you cropped it.

If you enter the third number that will force the image to a specific "size" and "resolution". So if you enter 8"x10" and 300 dpi, you will get an image that is 2400 x 3000 pixels in size.  Really only useful if you are trying to quickly create files that need to be a specific size when printed or displayed.

I know of no way to make this the "default".  However, I believe Photoshop retains the last used numbers even after restarting.  Sounds like all you need to do is enter 2 in the first box, 3 in the second, leave the third blank, and basically that will be your default.  You can also save it as a preset so it is easy to get back to.

If this isn't what you are talking about then I'm not sure anyone is understanding your question.   There is nothing to write adobe about here ...
Title: Re: Crop aspect ratio
Post by: Slobodan Blagojevic on September 24, 2010, 12:16:45 am
In addition, you need to make sure that "Resample" is not on...

"Resample" in the Image>Image Size is irrelevant.
Title: Re: Crop aspect ratio
Post by: mbalensiefer on September 24, 2010, 12:44:20 am
Hi, Wayne,

 Thank you.

 I have followed your above, but whenever I type an entry into either of the two columns (height or width), I automatically get the -- "px" which means pixels. How can I make an entry without entering it as pixels?
Title: Re: Crop aspect ratio
Post by: Slobodan Blagojevic on September 24, 2010, 01:41:08 am
... whenever I type an entry into either of the two columns (height or width), I automatically get the -- "px" which means pixels. How can I make an entry without entering it as pixels?

Check my post #11.
Title: Re: Crop aspect ratio
Post by: mbalensiefer on September 24, 2010, 02:03:46 am
Hi.

 I did this.

 I have the same results.
 Is anybody here performing a standard crop with a set aspect ratio and NOT having the height and width change to EXACTLY what was set as the aspect ratio?

 Thank you,
Michael
Title: Re: Crop aspect ratio
Post by: Eric Myrvaagnes on September 24, 2010, 10:11:52 am
Hi, Wayne,

 Thank you.

 I have followed your above, but whenever I type an entry into either of the two columns (height or width), I automatically get the -- "px" which means pixels. How can I make an entry without entering it as pixels?
If you don't like "px," your only alternative is to type in "in" for inches or "cm" for centimeters. I prefer inches, since they are bigger.

The important thing is to make sure the resolution box is blank. If anything is there already, move to that box and hit "delete."
Here is an example of an image I posted in another thread. As posted, it is 850 px x 583 px at 96 px/in resolution, including the "frame."

In CS5 I cropped it using 3 in and 2 in for width and height and no resolution specified. The result came to 3"x2" at 222 px/in. I then went to "image size" (ctrl+alt+I in windows) and unchecked "resample image" and typed 96 into the resolution box. This kept the pixel dimensions the same (666px x 444 px) but said the image size was now 6.938" x 4.625". This is the second image.

Then I went back to the original image and did exactly the same, but used width=30 inches and height=20 inches (same ratio as before). The image was now 30" x 20.016" at 21.733 px/in. I resized that (with "resample unchecked") to 96 px/in again, which gave me an image size of 6.792" x 4.531" and pixel dimensions of 652 x 435. This gives the third image. The slight differences in pixel dimensions and converted sizes are because I didn't crop exactly the same way both times. But notice that the two croppings look almost exactly the same.

I hope this helps a little.

Eric

Title: Re: Crop aspect ratio
Post by: Slobodan Blagojevic on September 24, 2010, 10:17:20 am
... I did this. I have the same results....

That would be possible only if you forgot to remove "px" from the Crop tool's Width and Height fields.
Title: Re: Crop aspect ratio
Post by: JeanMichel on September 24, 2010, 11:45:09 am
Hi again,

I gather that what Michael is trying to attempt is to crop images to end up with any size (in whatever units he works in) at the 'native' resolution. He doesn't care if the end image is 6 units by 9 or 6 by 4 or whatever as long as the pixel resolution does not change.

Here is what happens in the real world:

I open an uncropped  image from ACR (from Canon 5D2, 16 bit). The Pixel Dimensions (file size) is 120.3 mb, (5616 by 3744 pixels -- that is what the camera sensor produces)
The document size becomes 112.32 by 74.88 picas at 300 pixels per inch.
That also happens to be a 2 by 3 size ratio.

Since I will be printing on 13 by 19 inches paper and want to start with non-fractional units, I change to document size to 108 by 72 picas in the Image Size panel, having deselected the Resample Image check box I end up with the same pixel dimensions but now the resolution is 312 pixels per inch.

In Preferences (Cmd-K on a Mac) I make sure that my units are in picas (you can choose whatever unit flavour you prefer).

Now let's use the crop tool.

First I simply go for the crop tool leaving all the boxes (width, height and resolution blank). I crop an area measuring 90 picas by 60 picas (2 by 3 ratio) -- use the Info panel to see the measurements. That makes for an image with the following dimensions: 83.6 mb, 4680 by 3120 pixels; 90 by 60 picas document size and 312 pixels per inch resolution. There has been no resampling, I simply used a pair of scissors to cut out a smaller image from the larger one. If I crop a smaller area, say 36 picas by 24 picas I will simply have a smaller 13.4 mb, 1873 by 1249 pixels; 36 by 24 pica document at 312 pixels

Second
I enter 90 picas and 60 picas in the width and height boxes but leave the resolution blank.
I use the crop tool and drag an area to be cropped. The tool's marquee is proportional to the 90 by 60 size. I adjust the box size and location to my liking and Enter.
This, in this particular case, gives me an image of 55.4 mb, 3812 by 2541 pixels; and a document size of 90  by 60 picas and a resolution of 254.133 pixels per inch. There has been no resampling. A different crop will produce the same document size but with different pixel dimension and resolution.

Third
This time I enter 90, 60 and a 312 ppi resolution.
Crop, it does not matter what the actual cropped area is the following sizes will be always the same -- whether your crop area is tiny or larger -- the sizes will always be:
83.6 mb, 4680 by 3120 pixels; 90 by 60 picas and 312 pixels per inch. In this case you are enlarging the cropped area to the 90 by 60 picas size.

Units
The crop tool will always use the units that you set in you preferences. You cannot change the units, say inches instead of picas in the boxes. The width and height boxes must be in units -- pixels, inches, cm, picas... you cannot  have a number and no units.

So, you cannot set a crop ratio parameter in PS. You can only crop using sizes you set yourself; you have to figure out if the crop area fits you desired ratio by doing a manual calculation.

The easiest way to crop using a set ratio is to do it in Camera Raw, I don't know if Lightroom or Aperture have similar tools.

I hope that this helps and does nor muddify!

Jean-Michel
 



Title: Re: Crop aspect ratio
Post by: mbalensiefer on September 24, 2010, 11:56:25 am
Ok;
 There is no way that I can enter "nothing" as the unit "type" in the Height and Width boxes. But I am now working in inches (in) instead of pixels (px).:O

The problem for me now is that working in inches changes my print resolution, or dpi:

What I am trying to do is simply crop all of my images to a set H/W ratio so that they will fit inside their image placeholders within my Web site.

I am simultaneously watermarking my images:
 But when "print resolution" (dpi) changes, then my watermark is skewed in size; very skewed in fact, as I perform a Photoshop "File>Place" of my watermark.
 I may need to create a batch file that will change my resolution back to 72 dpi before I place watermarks/text atop my images.

I find it hard to believe that PS cannot make this easier, lol.

Jean; can Camera Raw import a cropped photo into Photoshop? I am trying to limit file "saves" to prevent artifacting.

Thanks all for your help!
Michael
Title: Re: Crop aspect ratio
Post by: Slobodan Blagojevic on September 24, 2010, 12:09:34 pm
... So, you cannot set a crop ratio parameter in PS. You can only crop using sizes you set yourself; you have to figure out if the crop area fits you desired ratio by doing a manual calculation....

Unless I misunderstood something, this is not correct. By entering 2 and 3 into the Crop tool's W & H fields, while leaving the Resolution field blank, you are setting a crop ratio, and you do not have to do any manual calculation, as your crop area will always retain the 2/3 ratio.
Title: Re: Crop aspect ratio
Post by: mbalensiefer on September 24, 2010, 12:16:54 pm
Hi Slobodan,

 Yes; a crop "ratio/ aspect ratio" is effected in your above.
However, units (px, pi, in, etc.) are entered automatically, and these areas cannot be left blank?

Michael
Title: Re: Crop aspect ratio
Post by: Slobodan Blagojevic on September 24, 2010, 12:42:30 pm
... However, units (px, pi, in, etc.) are entered automatically, and these areas cannot be left blank?...

They can not be left blank, true, but units are irrelevant, i.e., you end up with the desired crop ratio anyway, as if you just entered 2 and 3 without units.
Title: Re: Crop aspect ratio
Post by: mbalensiefer on September 24, 2010, 12:54:59 pm
Thank you.

 Yes. I would like to crop my images by aspect ratio alone--without resizing them all over the place. Using all these techniques, my images either shrink well below original dimensions or become huge when I've started off with small images.

 My original images are of varied sizes. :(

 
Title: Re: Crop aspect ratio
Post by: Slobodan Blagojevic on September 24, 2010, 01:30:44 pm
... I would like to crop my images by aspect ratio alone--without resizing them all over the place....

Once again, this is a logical impossibility, not Adobe's fault. You can not crop without resizing, as cropping is resizing by definition. To prove the point, forget Photoshop... try cropping with a pair of scissors, and you will see that the end result must always be smaller than the original.
Title: Re: Crop aspect ratio
Post by: JeanMichel on September 24, 2010, 01:37:22 pm
Hi again,

Michael, you are asking for close to the impossible. Slobodan is correct is saying that you can enter 2 and 3 and will end up with an image of that ratio regardless of units, etc. In my examples, if I had simply entered 2 and 3 (picas are smallish -- 6 picas to an inch) my document size resolution would have been in the thousands of ppi, which is OK. I could have then resized the image in Image Size, with or without resampling to the actual size I wanted -- if resampled, the quality of the result would vary depending on the final document size and ppi.

I am not a web designer (I make prints, and I make images to fit into print publications) but I believe that for the web you should work using pixel dimensions.

In any and all cases, you need to know the final size and use of the image. If, for example, your web template calls for a 640 by 960 pixels image, then you can simply set your crop tool to 640 by 960 pixels at 72 ppi (anything above 72 ppi is wasteful) and be done with it.

Jean-Michel

And yes, you can open a PS file in ACR but that would be convoluted.
Title: Re: Crop aspect ratio
Post by: fdisilvestro on September 24, 2010, 03:04:45 pm
Another option is to use the marquee tool and then Image->Crop.

When you select the marquee tool, in the option bar, select "Fixed Aspect Ratio" in the style section and write the desired numbers in the height and width boxes. Draw your marquee and next go to Image->Crop.

The final image will have the same DPI as the original since no resampling is performed.

Title: Re: Crop aspect ratio
Post by: AFairley on September 24, 2010, 03:38:39 pm
Another option is to use the marquee tool and then Image->Crop.

When you select the marquee tool, in the option bar, select "Fixed Aspect Ratio" in the style section and write the desired numbers in the height and width boxes. Draw your marquee and next go to Image->Crop.

The final image will have the same DPI as the original since no resampling is performed.



Beat me to it.  I always use the marquee tool and Image->Crop because there can never be any resampling with this method, and I am free to define freehand, set up a ratio, or an actual size in pixels.  I stopped using the crop tool years ago, and now, with the perspective correction tools in the lens filter, there's no longer any use for the transform function included in the crop tool to correct keystoning, ect.
Title: Re: Crop aspect ratio
Post by: Wayne Fox on September 24, 2010, 04:35:16 pm
Ok;
 There is no way that I can enter "nothing" as the unit "type" in the Height and Width boxes. But I am now working in inches (in) instead of pixels (px).:O

The problem for me now is that working in inches changes my print resolution, or dpi:

What I am trying to do is simply crop all of my images to a set H/W ratio so that they will fit inside their image placeholders within my Web site.

I am simultaneously watermarking my images:
 But when "print resolution" (dpi) changes, then my watermark is skewed in size; very skewed in fact, as I perform a Photoshop "File>Place" of my watermark.
 I may need to create a batch file that will change my resolution back to 72 dpi before I place watermarks/text atop my images.

Michael
So now you are describing something different than your first post indicated.  You are not just trying to restrict your crop to a specific aspect ratio, but you area also wanting them to fit a placeholder in a website, which probably has a specific pixel dimension.  but then you don't want them resized, which seems odd if you are doing this to fit a specific placeholder, which probably as a specific size.  And of course, the "dpi" for a web image is irrelevant ..., all that matters is the actual pixel dimensions. 

I'm trying to wrap my head around exactly what you are trying to do and having a hard time.  However, it sounds like your problem can be easily resolved by creating an action which would possibly start after you create a selection with the selection rectangle, having it set to your desired aspect ratio.  Then you can crop it, resize it or simply change the DPI without resizing, etc.
Title: Re: Crop aspect ratio
Post by: mbalensiefer on September 27, 2010, 07:53:22 am
Thanks much, all.

 I now have an alternative to the Crop tool to experiment with; the Marquee.
 The thing that I miss when using the Marquee tool is the Crop tool's "Shield Color" feature, where one can darken the opacity of the uncropped portion. This allows one to eyeball what details you are cropping out and which you are leaving; and thus affect a much better image.
 I am simultaneously trying to effect as non-destructive an edit as possible, so the fact Crop re-samples and the DPI-changing issue of this tool are factors as well.

 Is it confirmed that the Marquee tool does not resample?...Well on a "Difference" layer, one can still see changes between originals and Marquee-cropped re-saves; but the difference is staggering when comparing an original file to a re-save when using the Crop tool.

 I think that I should write to Adobe to see if they can implement the better Marquee features into the Crop tool, or the "Shield Color" feature of the Crop tool into the Marquee tool.
 Has anyone done this before? :P

Michael
Title: Re: Crop aspect ratio
Post by: stamper on September 27, 2010, 08:00:02 am
Posted in error. :)
Title: Re: Crop aspect ratio
Post by: Wayne Fox on September 27, 2010, 02:37:24 pm
Thanks much, all.

 I now have an alternative to the Crop tool to experiment with; the Marquee.
 The thing that I miss when using the Marquee tool is the Crop tool's "Shield Color" feature, where one can darken the opacity of the uncropped portion. This allows one to eyeball what details you are cropping out and which you are leaving; and thus affect a much better image.
 I am simultaneously trying to effect as non-destructive an edit as possible, so the fact Crop re-samples and the DPI-changing issue of this tool are factors as well.

 Is it confirmed that the Marquee tool does not resample?...Well on a "Difference" layer, one can still see changes between originals and Marquee-cropped re-saves; but the difference is staggering when comparing an original file to a re-save when using the Crop tool.

 I think that I should write to Adobe to see if they can implement the better Marquee features into the Crop tool, or the "Shield Color" feature of the Crop tool into the Marquee tool.
 Has anyone done this before? :P

Michael
No, the crop command used with the marquee tool does not resample.

However, neither does the crop tool if you don't want it to.  The changes in the resolution have nothing to do with the file itself ... it is not resampled unless you put a number in the resolution box. You seem to be confusing the DPI resolution with the need to resample.  The file itself only has two numbers ... number of pixels in length and width.  The "resolution" of the file is simply the number used to determine the physical size of the image if output.  So when you see the "resolution" change after cropping, it isn't because it was resampled.  And yes, this is an odd behavior of the crop tool but it doesn't mean the file was resampled.

The issue of the file "resolution" or DPI, (which has no meaning or value unless you are printing it and has nothing to do with the file.), can be easily resolved with a simple two step action.  Start recording an action.  Select the crop tool and enter your ratio in some number.  (2x3, 200x300, 2000x3000 ... whatever). Drag and select your area and crop.  Then select Image Size from the Image menu.  Uncheck all check boxes, and enter whatever you want the final "resolution" to be.  (which will change the sizes as well).  Accept this and stop recording the action.  Now in the action, make sure the "dialog" option is enabled in your crop command (the little red dialog shows next to the check mark in the command in your action).  Now when you open an image, and run this action, it will start with the same selection, but you can move it or resize it.  Once you confirm the crop , the action will then change the resolution for you.  No resampling.
Title: Re: Crop aspect ratio
Post by: mbalensiefer on September 28, 2010, 01:19:40 am
Hiya Wayne.

 I will try your new crop method when I get home.
 As an aside:

 Open a file, "xxxx.jpg".
 "Crop" the original file using the Marquee. Save the file as xxxx_Marq.jpg
 "Crop" the original file using the Crop tool. Save the file as xxxx_Crop.jpg

 Open the original file, "xxxx.jpg".
 Use either re-saved file to "Difference" layer atop the original file.
 Note the differences inherent between the Crop and Marquee'd files.

 You may want to Fullscreen your PS, and turn off your room lights. Turn background color to Black. I did all files at a PS .jpeg file size of 9 (which artifacts less than other file sizes), and the difference was still staggering. I contend that a traditional Crop always resamples, regardless of "DPI/PPI" input...?

~Michael
Title: Re: Crop aspect ratio
Post by: pegelli on September 28, 2010, 08:17:54 am
"Crop" the original file using the Crop tool. Save the file as xxxx_Crop.jpg

Michael, can you let us know which figures you included in the three boxes on the top of the screen while using the crop tool? (the boxes for length, height and resolution)
Title: Re: Crop aspect ratio
Post by: mbalensiefer on September 28, 2010, 08:23:40 am
Michael, can you let us know which figures you included in the three boxes on the top of the screen while using the crop tool? (the boxes for length, height and resolution)

Hi!
 As far as my above, I don't think it matters much for someone to see the difference. However, I'd start with a pixel height approximate to just below your PS screen size so that there is no dynamic resizing. PPI/DPI resolution doesn't matter; just keep it constant to eliminate all variables.

~Michael
Title: Re: Crop aspect ratio
Post by: pegelli on September 28, 2010, 08:29:29 am
I think Wayne Fox's point was that by leaving the resolution box empty it does not resample.
So try your test without putting a number there and I guess you'll see no resampling is happening.
Title: Re: Crop aspect ratio
Post by: Wayne Fox on September 28, 2010, 01:49:44 pm

 Open a file, "xxxx.jpg".
 "Crop" the original file using the Marquee. Save the file as xxxx_Marq.jpg
 "Crop" the original file using the Crop tool. Save the file as xxxx_Crop.jpg

 Open the original file, "xxxx.jpg".
 Use either re-saved file to "Difference" layer atop the original file.
 Note the differences inherent between the Crop and Marquee'd files.

 You may want to Fullscreen your PS, and turn off your room lights. Turn background color to Black. I did all files at a PS .jpeg file size of 9 (which artifacts less than other file sizes), and the difference was still staggering. I contend that a traditional Crop always resamples, regardless of "DPI/PPI" input...?

~Michael
Well, the fact that you used jpgs makes it invalid. The jpeg compression and subsequent decompression may not result in exactly identical pixels. When you "crop" for this test are you cropping 100% of the image?  If not how do you know your "crops" were identical?  If they are exactly identical I would assume the jpg compressions may also result in differences.

So I opened an 8700 x 4500 horizontal image.   I used the crop tool, set to 4in x 5in and created a selection by starting off the image at the upper left corner and dragging off the bottom at the bottom right.  This create a vertical section of about 1/2 the image.  I cropped it and saved it as a tiff file.  I reopened the same image, and set the marquee tool to a 4 x 5 ratio and made the same selection rectangle, then cropped with the crop command.  I saved it as a tiff file.  the resulting files were about 4700x3700 in size.  I stacked one on the other, changed the blending mode to difference, and the result is a 100% pure black image ... no pixels in the image that are not 0,0,0.

The only difference in the two crops is because the crop tool demands a physical dimension (that's one of the reasons it was created) it will then calculate the DPI of the image, which is labeled the "resolution".  This will almost always leave you with an odd number.   The action fixes it easily.  You can also just create an action which fixes that and skip the crop part of the action.

The crop tool does not resample unless you have a number entered in the resolution box.  If you are getting a different result, it isn't a Photoshop problem.
Title: Re: Crop aspect ratio
Post by: walter.sk on September 28, 2010, 05:13:07 pm
I'd like to keep a default 2/3 aspect ratio in all of my crops. However, when I "finish" my crop (i.e. hit enter), the image is resized as well. I'd like to keep aspect ratio but not have to resize.
 How do I do this?

Thank you!
Michael
If you are uncomfortable with the use of the crop tool, use the rectangular marquee.  Then, in the options bar under "Style" you will find 3 choices: Normal, Fixed Ratio, and Fixed Size.  In the Fixed Ratio choice, enter your 2x3.  When you drag the tool it will vary in size but always remain in the 2x3 aspect ratio.  If you switch between landscape and portrait orientation you can click on the symbol between the width and height numbers and switch, for example, between 2x3 and 3x2.

I seldom use the crop tool unless I want to add to the canvas size.  I find the rectangular marquee very handy for the way I work when cropping.  Oh, I forgot...after you set your selection go to Image>Crop.
Title: Re: Crop aspect ratio
Post by: Eric Myrvaagnes on September 28, 2010, 06:48:26 pm
Through several versions of Photoshop I have never used the marquee tool for anything.
After reading this thread I've tried it for cropping and I like it! Thanks to those of you who pointed out this better way to crop.

Eric
Title: Re: Crop aspect ratio
Post by: mwdiers on December 30, 2010, 11:22:50 am
Quote
The crop tool does not resample unless you have a number entered in the resolution box.  If you are getting a different result, it isn't a Photoshop problem.

This is not quite true. It's a bit more complicated. In fact, in Photoshop CS4 and CS5 (at least), the crop tool does resample your image if you enter a width and height in pixels, whether or not you have anything in the resolution box.

Furthermore, if you use a unit of measurement that would result in an image with a resolution higher than 9999, then your image will also be resampled to the targeted aspect ratio at 9999 PPI. Why this particular number, I do not know, but it is consistently the case. You can test this yourself by specifying width and height in millimeters or points, and then cropping a large portion of an image.

The solution is fairly simple: If you have your ruler set to pixels, always specify a unit of measurement when entering a ratio for the crop tool, in inches ("in"). For example: "3 in" x "2 in". No resampling will occur because the PPI will not climb over 9999 unless your image is positively massive. The width and height will be set at the size you specify, and resolution will be adjusted to fit that width and height. You can then reset the resolution using "Image Size..." and let width and height fall where they will.
Title: Re: Crop aspect ratio
Post by: mouse on December 31, 2010, 12:41:11 am
Thank you.
 Yes. I would like to crop my images by aspect ratio alone--without resizing them all over the place. Using all these techniques, my images either shrink well below original dimensions or become huge when I've started off with small images.
 My original images are of varied sizes. :(

It's really a simple problem but it requires a two step solution.

Using the Crop Tool (set to inches, NOT pixels, and the resolution box BLANK) you can fix the aspect ratio of your crop.  However, depending on the resolution of your original images, and how much of a crop you make, the resulting resolution (pixel dimensions) of the cropped image can be almost anything.

If now you require the cropped images to have a fixed pixel dimension, you must use the Image>Size function set to Resample and enter the pixel dimension you require.  You need only enter dimension for width or height; the other will be altomatically calculated.

Cheers