cropping revisited

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

Moderators: helmut, XnTriq, xnview

Post Reply
Hollywood
Posts: 10
Joined: Mon Nov 18, 2013 6:39 pm

cropping revisited

Post by Hollywood »

Hi,

I opened a windowed view of an image and clicked on the crop icon. Using the drop down on the crop toolbar, I choose "Letter" which should be 11x8.5"

I cropped a portion of the image and saved to another drive. I closed and restarted XnView MP and went to that image. The Image>Canvas Size reported the print size to be 8.06x6.25". This indicates the crop program is only respecting the aspect ratio, but not the size. However, when I changed the 8.06 to 11 (and the box is checked to Keep Ratio), the other box auto fills to 9.03. If this was the right ratio, it should have been 8.5.

I now opened this image in PhotoShop CS2 and checked the image size there. It reported 8.064 x 6.25. Looks like it carried out the decimal a bit further. When I changed 8.064 to 11, the other side auto changed to 8.526 (closer).

As I crop and save all of my photos to 8.5x11, I was hoping the crop function actually cropped to the size and not just the ratio. Also, even as a ratio, there seems to be some inaccuracy somewhere. I feel this is important when printing borderless pictures.

Am I doing something wrong, not understanding, or is there a bug?

Thanks for your time and fine program!
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: cropping revisited

Post by xnview »

Bug confirmed and will be fixed. See issue Issue 162 for current status and details.
Pierre.
Hollywood
Posts: 10
Joined: Mon Nov 18, 2013 6:39 pm

Re: cropping revisited

Post by Hollywood »

Cool, THANKS!

as far as features that I use or need, when you add the redeye tool, XnView MP will be my complete solution to replace the 3 programs I currently. I realize you are still in beta, but it is really looking good so far! :)
Hollywood
Posts: 10
Joined: Mon Nov 18, 2013 6:39 pm

Re: cropping revisited

Post by Hollywood »

xnview wrote:Bug confirmed and will be fixed. See issue Issue 162 for current status and details.
XnViewMP
Version 0.64 (Jan 4 2014)

Hi, I installed .64 and the crop still seems to not work as expected. I open an image, click on the crop icon and the toolbar shows. From the dropdown button, I select "letter". I then drag a rectangle across the image that I want to save, and then select the Crop button. Now I go to the Image, Resize option, and it says the current image is 10.22 x 13.19 inches (varies by how much of the image you crop/save). My expectation is that it would be 8.5x11 inches. While in the Resize option I enter 8.5 in the Width box and (since I have checked Keep Ratio), I expect the Height to change to 11 Inches, but it changes to 10.97 inches.

I think I am using this feature as intended, but it is still not working correctly. On the Crop toolbar I see 4 number windows that I don't really know what they are for, so it's possible I am doing something wrong? Like I originally posted though, even if the crop just used the selected ratio (but not size), while in the Resize option, entering 8.5 or 11 in one value, the other value should auto change to 8.5 or 11 (not 10.97).

I like the number windows (on the crop toolbar) for entering your own values. I think there should be one for Height and Width (and a choice of pixels, CM, or inches), and you already have the "<>" which is great. Maybe one for Resolution? If we used this rather then the preselected choices you have in the dropdown button, it would be nice for the program to retain the users values until we change them.

Thanks for all of your great work!
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: cropping revisited

Post by xnview »

I've tried, and it works.
I select "27.9x21.6 [US letter]", and the result is 8.51x11" or 11x8.51"
Pierre.
Hollywood
Posts: 10
Joined: Mon Nov 18, 2013 6:39 pm

Re: cropping revisited

Post by Hollywood »

xnview wrote:I've tried, and it works.
I select "27.9x21.6 [US letter]", and the result is 8.51x11" or 11x8.51"
I just tried again. I opened a photo that was right off of my memory card from my camera. It is a JPG shot at "fine" on a Sony 7 megapixel camera.

Before I perform any crop, XnView "Resize" shows the image to be 42.67 x 32.00 (inches), 72 pixels/inch.

When I choose the Crop Icon, and "Letter", a box of the proper proportion shows on the screen in the upper 1/4 to 1/3rd of my photo. IF I POSITION THAT BOX AND CROP, IT CROPS to 8.5x10.99".

There were 5 people in my picture, but the box on the screen wasn't even large enough to include 2 people. My assumption was to be able to choose a size/ratio, and drag/position the box that XnView MP puts on the photo and surround the part of the photo I want to keep (pulling the corner of the crop box on the screen like it lets you do while maintaining it's ratio). Regardless of how much or little of my photo I retained, the result should be 8.5x11".

Thanks!
Hollywood
Posts: 10
Joined: Mon Nov 18, 2013 6:39 pm

Re: cropping revisited

Post by Hollywood »

Hollywood wrote:
xnview wrote:I've tried, and it works.
I select "27.9x21.6 [US letter]", and the result is 8.51x11" or 11x8.51"
I just tried again. I opened a photo that was right off of my memory card from my camera. It is a JPG shot at "fine" on a Sony 7 megapixel camera.

Before I perform any crop, XnView "Resize" shows the image to be 42.67 x 32.00 (inches), 72 pixels/inch.

When I choose the Crop Icon, and "Letter" (as the crop size), a box of the proper proportion shows on the screen in the upper 1/4 to 1/3rd of my photo. IF I POSITION THAT BOX AND CROP, IT CROPS to 8.5x10.99".

There were 5 people in my picture, but the box on the screen wasn't even large enough to include 2 people. My assumption was to be able to choose a size/ratio, and drag/position the box that XnView MP puts on the photo and surround the part of the photo I want to keep (pulling the corner of the crop box on the screen like it lets you do while maintaining it's ratio). Regardless of how much or little of my photo I retained, the result should be 8.5x11".

Thanks!
Sorry to rehash this, but there was no reply. Am I not supposed to be able to pick a size/ratio and stretch it across an image to cover the part of the image I want to keep, hit crop, and then the result is of the part of the image I want is in the chosen size?

I don't want to save just 8x11" of the current image, I want to save a specific portion of the image that I select by dragging a box that maintains the requested aspect ratio across my image, hit crop, and the image result 8.5x11".

I hope I am explaining this correctly. :) Currently if you choose a set crop size (like letter), XnViewMP puts a box on the image. You can only position it on your image, but if you drag out the edges to cover the part of the picture you want to keep, it is no longer the chosen crop size (letter).

Thanks again!
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: cropping revisited

Post by m.Th. »

In order to keep the same size just move the box around by dragging it from the middle of the box and not from the handles.

But if you want to have the same PRINT size (hence in inches and not in pixels) this is a little bit difficult to implement because the program needs to know at what ppi you will print in the future. And this is a little bit difficult to guess. For example, Ps will assume that you will print at 240ppi and this is it. Also, what will happen when you'll have a scanned doc at 300, 400 or 600 dpi? Or a photo at 72 dpi? Rescale? With which precision? It is a tough question.

So, (IMHO) it will be a big constraint to have a fixed-size selection box over a picture. To have a default size at the beginning, this is something different and IMHO this can be implemented, but it needs thinking (GUI + code) because now the 8.5x11" means an aspect ratio and works on any photo size, thing which is very good. Making the default size at the beginning 8.5x11" means that the image will have such a resolution in order to be print on such an area (~7-8 MP IIRC) which isn't always the case.

Also, the "errors" in dimensions is something which is expected and comes from rounding errors in floating-point math. Ok, it can be improved but Pierre must rewrite the entire workflow to use other math calculations (fixed-point/BCD etc.).
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
Post Reply