Canvas resize "as delta" in batch mode

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: helmut, XnTriq, xnview

Post Reply
User avatar
Peter2
XnThusiast
Posts: 1365
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Canvas resize "as delta" in batch mode

Post by Peter2 »

I tried "canvas resize", width "-157", height "0", "use above values as size delta".

The saved XBS is this:

Code: Select all

canvas( 0 #-157 #0 6 255 255 255 0 )
settings( 3 0 1 0 1 0 )
output( tiff 2 6 0 )
Problem: It resize twice 157 pixel. Same happend with "-300" - it resize with 2x300 = 600 dpi"

Edit:
This happens only with the option "width". The option "height" resizes correctly.

Peter
XnViewMP <Current version> German, XnConvert <Current version>, Win 10
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Re: Canvas resize "as delta" in batch mode

Post by marsh »

Confirmed. Both bottom-left and bottom-right double the H delta.
User avatar
Peter2
XnThusiast
Posts: 1365
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Re: Canvas resize "as delta" in batch mode

Post by Peter2 »

The height or the width? Or is is dependent from the base-point?

Peter
XnViewMP <Current version> German, XnConvert <Current version>, Win 10
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Re: Canvas resize "as delta" in batch mode

Post by marsh »

Peter2 wrote:The height or the width? Or is is dependent from the base-point?

Peter
Hi,
I tested width 100, height 0 delta at each base-point. Starting from the 2 lower corners, the opposide side had increased canvas of 200 pixels on an edge. I didn't use the script functions.

---Edit---
The w-0, h-100 combinations all work.
Post Reply