Export transformation, not in a batch

Moderator: jsachs

Post Reply
tomczak
Posts: 1431
Joined: April 25th, 2009, 12:56 am
What is the make/model of your primary camera?: Fuji X-E2
Contact:

Export transformation, not in a batch

Post 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.
Maciej Tomczak
Phototramp.com
jsachs
Posts: 4458
Joined: January 22nd, 2009, 11:03 pm

Re: Export transformation, not in a batch

Post 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.
Jonathan Sachs
Digital Light & Color
tomczak
Posts: 1431
Joined: April 25th, 2009, 12:56 am
What is the make/model of your primary camera?: Fuji X-E2
Contact:

Re: Export transformation, not in a batch

Post 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.
Maciej Tomczak
Phototramp.com
jsachs
Posts: 4458
Joined: January 22nd, 2009, 11:03 pm

Re: Export transformation, not in a batch

Post 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.
Jonathan Sachs
Digital Light & Color
tomczak
Posts: 1431
Joined: April 25th, 2009, 12:56 am
What is the make/model of your primary camera?: Fuji X-E2
Contact:

Re: Export transformation, not in a batch

Post 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.
Attachments
Export example.zip
(1.13 KiB) Downloaded 123 times
2020-07-17_204138.jpg
2020-07-17_204138.jpg (76.25 KiB) Viewed 2511 times
Last edited by tomczak on July 17th, 2020, 10:48 am, edited 1 time in total.
Maciej Tomczak
Phototramp.com
jsachs
Posts: 4458
Joined: January 22nd, 2009, 11:03 pm

Re: Export transformation, not in a batch

Post by jsachs »

It is not supposed to produce an image below Export -- the output image is the Export.
Jonathan Sachs
Digital Light & Color
tomczak
Posts: 1431
Joined: April 25th, 2009, 12:56 am
What is the make/model of your primary camera?: Fuji X-E2
Contact:

Re: Export transformation, not in a batch

Post by tomczak »

Ok, thanks, got it.
Maciej Tomczak
Phototramp.com
jsachs
Posts: 4458
Joined: January 22nd, 2009, 11:03 pm

Re: Export transformation, not in a batch

Post 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.
Jonathan Sachs
Digital Light & Color
tomczak
Posts: 1431
Joined: April 25th, 2009, 12:56 am
What is the make/model of your primary camera?: Fuji X-E2
Contact:

Re: Export transformation, not in a batch

Post 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.
Attachments
2020-07-17_220811.jpg
2020-07-17_220811.jpg (89.14 KiB) Viewed 2502 times
Maciej Tomczak
Phototramp.com
jsachs
Posts: 4458
Joined: January 22nd, 2009, 11:03 pm

Re: Export transformation, not in a batch

Post 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?
Jonathan Sachs
Digital Light & Color
Post Reply