selection rectangle snap to border

Ideas for improvements and requests for new features in XnView Classic

Moderators: helmut, XnTriq, xnview

User avatar
herr_k.
Posts: 192
Joined: Fri Jan 06, 2006 6:11 pm

selection rectangle snap to border

Post by herr_k. »

so if i have a picture with a border and i want to delete the border around the picture, i have to manually move the selection rectangle to it and do a crop.
often i have to zoom so that no actual picture information is lost when wanting to remove only the border.
i would like an option like "snap selection to border" where the selection rectangle is automatically positioned on the last pixel (on each side) in front of the border.
thx
User avatar
xnview
Author of XnView
Posts: 45803
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: selection rectangle snap to border

Post by xnview »

herr_k. wrote:so if i have a picture with a border and i want to delete the border around the picture, i have to manually move the selection rectangle to it and do a crop.
often i have to zoom so that no actual picture information is lost when wanting to remove only the border.
i would like an option like "snap selection to border" where the selection rectangle is automatically positioned on the last pixel (on each side) in front of the border.
thx
Do you have tried 'auto crop'?
Pierre.
User avatar
herr_k.
Posts: 192
Joined: Fri Jan 06, 2006 6:11 pm

Post by herr_k. »

yes.
it didnt worked, because (like with the transparencycolor on gif) there is no colorpicker. and i didnt see any matching backgroundcolor in the palette. so it wasnt cropped at all.

but i was thinking of an AUTOMATIC solution.
when there is a big color difference between the picture (or the border of a selection rectangle [1]) and the border of a picture, you press right mouse inside the rectangle, choose "selection until border" from menu, the rectangle should choose its size one pixel before that color change on all 4 sides [2]. and then you could manually press "crop" if the selection seems right.

Image
User avatar
herr_k.
Posts: 192
Joined: Fri Jan 06, 2006 6:11 pm

Post by herr_k. »

bumper