Batch convert -- Canvas resize gives unexpected result

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
cday
XnThusiast
Posts: 4396
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Batch convert -- Canvas resize gives unexpected result

Post by cday »

A canvas resize using the Relative option increases the selected canvas dimension by twice the selected number of pixels:
Image.png
For example 127x128 --> 129x128

Is there a way to increase the canvas width by only one pixel?

Thanks.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Batch convert -- Canvas resize gives unexpected result

Post by xnview »

yes relative add to the left AND to the right
Pierre.
cday
XnThusiast
Posts: 4396
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Batch convert -- Canvas resize gives unexpected result

Post by cday »

xnview wrote:yes relative add to the left AND to the right
Yes... But when using the Relative option to increase for example the width of an image from 300px to 400px, isn't it more intuitive to enter a change of 100 rather than 50 pixels?

If the Relative option interface were changed, as I imagine it easily could be, it would introduce the question of how to handle a change of an odd number of pixels -- but wouldn't that only be an issue when Position -- Center is selected, and then an arbitrary assignment could be made as it usually wouldn't be critical?

A requirement to enter an odd number of pixels might be unusual, but it could have provided a solution to the rescaling precision issue in this recent post:

http://newsgroup.xnview.com/viewtopic.php?f=79&t=29167
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Batch convert -- Canvas resize gives unexpected result

Post by xnview »

cday wrote:Yes... But when using the Relative option to increase for example the width of an image from 300px to 400px, isn't it more intuitive to enter a change of 100 rather than 50 pixels?
yes perhaps better
Pierre.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Batch convert -- Canvas resize gives unexpected result

Post by xnview »

Bug confirmed and will be fixed. See issue Issue 191 for current status and details.
Pierre.
Post Reply