Page 1 of 1

Canvas resize "as delta" in batch mode

Posted: Mon Aug 03, 2009 11:26 am
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

Re: Canvas resize "as delta" in batch mode

Posted: Tue Aug 04, 2009 1:03 am
by marsh
Confirmed. Both bottom-left and bottom-right double the H delta.

Re: Canvas resize "as delta" in batch mode

Posted: Tue Aug 04, 2009 5:56 am
by Peter2
The height or the width? Or is is dependent from the base-point?

Peter

Re: Canvas resize "as delta" in batch mode

Posted: Tue Aug 04, 2009 6:06 am
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.