Using Autocrop with a little "Buffer"?

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

Moderators: helmut, XnTriq, xnview

Post Reply
XnRoot

Using Autocrop with a little "Buffer"?

Post by XnRoot »

Hi,

with Autocrop i've cropped the with border from some Scans. When the Scans is a text-only Image i looks terrible when XnView has cropped the Pixel next to the first "text-pixel". Can i set up so that not all with pixels are cropped, so that there are lets say 10 Pixel on the left side of the first "text-pixel" that XnView don't crop - a little "Buffer"?
User avatar
XnTriq
Moderator & Librarian
Posts: 6512
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Using Autocrop with a little "Buffer"?

Post by XnTriq »

There's no such option for Automatic crop, but you can add borders with Canvas resize.

PS: Are we talking about XnView Classic or MP?
cday
XnThusiast
Posts: 4397
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Using Autocrop with a little "Buffer"?

Post by cday »

XnRoot wrote:With Autocrop I've cropped the with border from some scans. When the scan is a text-only Image it looks terrible when XnView has cropped the pixel next to the first "text-pixel". Can I set up so that not all with pixels are cropped, so that there are, lets say, 10 Pixels on the left side of the first "text-pixel" that XnView don't crop - a little "Buffer"?
I don't see any way of doing that, but you might look at following the autocrop by a canvas resize to add a border, either in pixels or as a percentage, from the centre probably. If the background of the text image isn't white you will need to try to match the colour, and if the background isn't a uniform colour you may want to trying enhancing the image first, probably using a levels adjustment. There's lots of scope for experimenting depending on the quality of the final images you wish to obtain...
Post Reply