Page 1 of 1
Export transformation, not in a batch
Posted: July 17th, 2020, 7:38 am
by tomczak
If the Export transformation is part of a branch and the output is set to File, Write File button that works as an ad hoc Export output if Save To is set to 'File', which is quite useful. But if Seve To is set to 'Clipboard', I'm not sure how to instantly sent Export output to it, other than using File/Export version of it or run the whole branch in a Batch mode.
Re: Export transformation, not in a batch
Posted: July 17th, 2020, 7:54 am
by jsachs
Set Save to Output Image and then Edit/Copy Image to Clipboard?
I could also change the caption of the Write File button to Copy File and let you copy to the clipboard by clicking it.
Re: Export transformation, not in a batch
Posted: July 17th, 2020, 8:13 am
by tomczak
The first method works fine if I use File/Export. Actually, Save to Clipboard workes fine there as well.
But for the Export transformation in a branch, Save to Output doesn't seem to work even in a batch, and Save to Clipboard works in a batch but I have to run it. Write File button is only available for Save to File - if it was available as Copy File when Output = Clipboard, that would be handy.
Re: Export transformation, not in a batch
Posted: July 17th, 2020, 9:22 am
by jsachs
Not sure what you mean by "in a branch" - not seeing a problem here but I'm not sure if I am reproducing your scenario.
Re: Export transformation, not in a batch
Posted: July 17th, 2020, 9:53 am
by tomczak
In this scenario, for instance, if I run it in a batch when Export Output is set to 'Clipboard' and I run the batch, the Export output indeed gets copied to clipboard. If the output is set to 'Output Image', and the batch is run, it doesn't seem to produce an image below the Export.
From the Export control panel, I can save its output to file (with Write File button), but I don't know how to 'Write to Clipboard'.
I recall that it worked before (the first part, not Write to Clipboard imaginary button).
I've attached zipped workspace script.
There also seems to be an issue with Crop in a batch not remembering the cropping rectangle - once I figure out how to show it consistently, I'll report.
Re: Export transformation, not in a batch
Posted: July 17th, 2020, 10:13 am
by jsachs
It is not supposed to produce an image below Export -- the output image is the Export.
Re: Export transformation, not in a batch
Posted: July 17th, 2020, 10:36 am
by tomczak
Ok, thanks, got it.
Re: Export transformation, not in a batch
Posted: July 17th, 2020, 10:52 am
by jsachs
There is some question about what crop is supposed to do if you apply it to an image of different dimensions. In most cases, this is a dubious operation in a batch workflow unless you set a breakpoint on Crop.
I believe the current algorithm is supposed to work as follows:
If the new image has the same proportions as the old one, the cropping rectangle remains unchanged.
If Proportions is set to Arbitrary, the cropping rectangle is set to the same relative location as in the original -- i.e. the cropping rectangle is stretched as necessary according to the new image size.
If Proportions are set to some other value, Crop attempts to maintain these proportions in the new cropping rectangle but may alter its size.
There is an option in the Settings menu to reset the cropping rectangle to the entire image for batch operations.
Re: Export transformation, not in a batch
Posted: July 17th, 2020, 11:14 am
by tomczak
Yes, but if there is only one image in File Open, and there is a Resize transformation somewhere in the branch with the Breakpoint on, and I remove the Breakpoint and I run this single image as a batch, and then open the Rieize, this is what I see. Moving the cropping rectangle a little, sets the preview right.
Also, I don't know where this slight Angle value came from.
Re: Export transformation, not in a batch
Posted: July 17th, 2020, 12:25 pm
by jsachs
Can you send me the script file you are using and then describe the exact sequence of operations you are doing to get to the screen shot?