Page 1 of 1
Auto-crop after custom rotation
Posted: Sun Sep 16, 2007 10:15 pm
by fede
Hi all, thank you very much for xn-view, the best freeware (and better than many payware) image viewer
I have a small suggestion for us non-pro photographers...I often have to rotate a photo because it's about 1 or less degree askew...it would be very useful to include an option, when you rotate the picture, to automatically crop it to get rid of background border, like it does PSP 8 when you straight a picture. Don't you think so? I thought that "Automatic cropping" does it, but it doesn't work...
Bye
Re: Auto-crop after custom rotation
Posted: Mon Sep 17, 2007 7:28 am
by xnview
fede wrote:Hi all, thank you very much for xn-view, the best freeware (and better than many payware) image viewer
I have a small suggestion for us non-pro photographers...I often have to rotate a photo because it's about 1 or less degree askew...it would be very useful to include an option, when you rotate the picture, to automatically crop it to get rid of background border, like it does PSP 8 when you straight a picture. Don't you think so? I thought that "Automatic cropping" does it, but it doesn't work...
Bye
But when you rotate a picture, there is no background border to crop?
Re: Auto-crop after custom rotation
Posted: Mon Sep 17, 2007 10:49 am
by fede
xnview wrote:But when you rotate a picture, there is no background border to crop?
Hi Mr. Developer,
when you custom rotate a picture (let's say, 2 degrees counterwise) four triangles of background color are added to the image to make it rectangular (if you try it by yourself, you'll see...my english is so poor!

). A lot of graphic programs then added an option to automatically crop the resulting picture to avoid these 4 triangles...
Maybe these pictures will clarify...
Original
Rotated
This is the minimum crop needed to avoid generated background
Then cropped
Bye, and thanks!
PS As I say, this is the most common way to straighten a picture that is a little askew...you'll lose some pixel on the border when you crop, but it's often a lot more important that vertical lines (like buildings) are really vertical and horizontal ones (like horizon) are really horizontal

Posted: Fri Oct 05, 2007 4:17 pm
by fede
I saw you added this feature to last version of Xnview...thank you!
I suggest to all who will use this feature to enable showing of the grid, since you will be able to use the grid as reference for horizontal and vertical lines in your pictures...
Thanks again!
bye, Fede.
Posted: Fri Oct 05, 2007 5:18 pm
by helmut
Yes, it's very good to see auto-crop during rotation implemented.

It's one of various good suggestions in the area "rotation" made in topic
Rotation based on the horizon line +auto-crop option.
Darkening auto-cropped area
Rather than auto-cropping the preview immediately it might be even better to just darken the "background" area that will be cropped. That way the user can see and decide, how much of the image is cropped and whether important parts of the image are "lost".
Perhaps showing/hiding the grid in the rotate dialog comes next?

Posted: Fri Oct 05, 2007 9:20 pm
by fede
helmut wrote:Darkening auto-cropped area
Rather than auto-cropping the preview immediately it might be even better to just darken the "background" area that will be cropped. That way the user can see and decide, how much of the image is cropped and whether important parts of the image are "lost".
Mmmm...I think you cannot decide when an horizontal line is really...horizontal
So auto-crop now works as it should be...cropping the less possible part while being straight.
Yes, a straight line that helps you to trace the horizon and make it horizontal (like Paint Shop Pro > 8 do) would be perfect, but also now it works very good.
Just an humble opinion, of course.