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

) and the "DPI" value, while resampling image
because of print size ruins image quality for no acceptable reason.
There is indeed no WinZIP under my rock.