Yeah, sorry. The variable is defined earlier in the script. The
ruler units
are set to inch units and I grab the files original width (in
inches). In
this line I'm just trying to set the width back to the original
width, as if
I were in the dialog box, I uncheck the resize image checkbox, and
I type in
the width in inches.
With that info, does it still not make sense? How should I approach
this
differently?
I don't think that you need to approach it differently - you just
don't need to specify the interpolation if you aren't using it.
This would work OK:
set ruler units of settings to inch units
resize image doc20 width 10
Although you should also set the resolution to ensure that you end up
with a 10 inch image:
set ruler units of settings to inch units
resize image doc20 width 10 resolution 72