Page 1 of 1

Add & cut off margins

Posted: Sun Jun 11, 2006 3:31 pm
by DOS386
Suggestion: adding and cutting margins.

There should be a possibility to add a margin (same witdth for all 4 sides or 4
different widths) with selection of background colour to be added.

And removing a margin / cutting: same width for all 4 sides or 4 different
widths.

Possibility to specify the width by typing from keyboard in pixels.

---------------------------------------------------------------------------------------

Thanks for this great free prog. :) There are very few bugs :bug: only. I am
using PAINT (more buggy) besides it for some activities not yet supported
by XNVIEW, like margin editing & painting.

Re: Add & cut off margins

Posted: Sun Jun 11, 2006 8:14 pm
by helmut
NTOSKRNL_VXE wrote:Suggestion: adding and cutting margins.

There should be a possibility to add a margin (same witdth for all 4 sides or 4
different widths) with selection of background colour to be added.

And removing a margin / cutting: same width for all 4 sides or 4 different
widths.

Possibility to specify the width by typing from keyboard in pixels.
Thank you for your suggestion and welcome to the forum, NTOSKRNL_VXE. The function "Resize canvas" (Image > Resize Canvas) with position "center" and keep ratio is pretty much does what you want. But currently one can only set the new canvas size by percentage. A size delta in pixel would be really good.

Related topics:
- canvas resize by adding "delta" values in XnView
- batch frame making ... size delta
- batch border

---------------------------------------------------------------------------------------
NTOSKRNL_VXE wrote:Thanks for this great free prog. :) There are very few bugs :bug: only. I am
using PAINT (more buggy) besides it for some activities not yet supported
by XNVIEW, like margin editing & painting.
Thanks, good to hear. :-) Personally I also use MS Paint every now and then but have found little bugs so far. "Undo" of Paint is sometimes buggy, though.

Re: margins

Posted: Fri Jun 16, 2006 8:04 pm
by DOS386
helmut wrote:
The function "Resize canvas" (Image > Resize Canvas) with position "center"
and keep ratio is pretty much does what you want. But currently one can
only set the new canvas size by percentage. A size delta in pixel would be
really good.
Thanks. :-) It does partially. It does allow to add margins, but only same
number of pixels on 4 sides, and the new colour is always black.

There could be a "Image size" menu Item or Submenu, splitting into
"resample" , "lossless resample" , "margin delta pixel" , "canvas size" ,
and "Change DPI"

Lossless: growing by integer factor only, shrinking only by integer factor
and only after grow by same factor. The default "Lancosz" ruins image
quality when trying to grow by integer factor, and converts everything
into True-Color.

All edits should display the old values (X-size & Y-size, DPI), UNEDITABLE,
and below an extra field for editing.

And, this ??? (how is it called ???) "menu"

is rather anti-intuitive (unlike most of XN-View activities) and could
disappear and be replaced by some "preferred" values (50%, 25%, 200%)
activable by a click to a button or a "radio" or how is it called (checkbox
but only one option can be selected) and an additional editing field for
other values.

The "Print size" could (???) disappear from "resample" & "canvas" menus
because this can be set while printing by the zoom factor to any value from zero
to infinity (almost :mrgreen:) and the "DPI" value, while resampling image
because of print size ruins image quality for no acceptable reason.

Posted: Mon Dec 17, 2007 5:02 am
by mel2000
I'm looking to create the effect of one of those old Polaroid snapshot frames where the bottom border is much longer than the top. I would likeXnView to allow users to set the border/canvas size of the top and bottom, or right and left individually. Currently the top and bottom or right and left borders must be set the same length.

Posted: Sat Mar 22, 2008 7:39 am
by helmut
mel2000 wrote:I'm looking to create the effect of one of those old Polaroid snapshot frames where the bottom border is much longer than the top. ...
With batch processing you can add borders with different widths.

Applying "Resize Canvas" twice with different position will do the job:

1.) With menu "Tools > Batch processing" open the "Batch processing" dialog.
2.) Specify output format and output dir (e.g. $\converted)
3.) Switch to tab "Transformation"
4.) Add transformation "Resize Canvas"
5.) As parameters of "Resize Canvas" you specify:
Width: 20
Height: 20 <Here, specify the number of pixels you want to have for the top border>
[x] Use above values as size delta
Position [Bottom-Center]

6.) Add transformation "Resize Canvas" for a second time
7.) As parameters of "Resize Canvas" you specify:
Width: 0
Height: 20 <Here, specify the number of pixels you want for the bottom border>
[x] Use above values as size delta
Position [Top-Center]

8.) Start processing by selecting "Go".
Done.

Posted: Sun Mar 23, 2008 9:24 am
by Peter2
Hello

here

http://newsgroup.xnview.com/viewtopic.php?t=14295

I made already a suggestion for "cropping +/- tolerance".

Peter