Skip to main content
Participant
October 13, 2023
Answered

Batch convert EXR to HDR issue (Photoshop 2024)

  • October 13, 2023
  • 2 replies
  • 2448 views

Hi.

 

Having a problem setting up a Batch to convert EXR files to HDR. To save as an HDR the file needs to be flattened, so the Action sequence is Open>Flatten>Save As (HDR). However not all of the 300 or so EXR's need flattening and so as soon as the Action hits one of those it stops the batching with the error

"The command “Flatten Image” is not currently available".

 

Anyone know of a way round this, other than opening every EXR first to Flatten so the Action/ Batch works?

 

Many thanks in advance

This topic has been closed for replies.
Correct answer Alight Motion32907432v4hl

To address the issue in Adobe Photoshop, use Conditional Actions to selectively flatten EXR files during batch processing. This way, the batch won't stop when encountering non-flattenable EXR files.

2 replies

Participant
October 13, 2023

To address the issue in Adobe Photoshop, use Conditional Actions to selectively flatten EXR files during batch processing. This way, the batch won't stop when encountering non-flattenable EXR files.

Stephen Marsh
Community Expert
Community Expert
October 13, 2023

Edit: Have you tried Save As a Copy on the layered file?

 

__________


Conditional actions:

 

https://helpx.adobe.com/au/photoshop/using/conditional-actions-creative-cloud.html

 

Or a conditional script, whether generic:

 

http://actionlogic.blogspot.com/2006/03/sivas-photoshop-conditional-action.html

 

Or a custom script to play an action:

 

#target photoshop
if (activeDocument.activeLayer.isBackgroundLayer && activeDocument.layers.length === 1)
	{
	app.doAction("Flattened Action", "My Action Set");
	}
else
	{
	app.doAction("Layered Action", "My Action Set");
	}

 

Where you can record the execution of the script into an action for use with the Batch command.

 

https://prepression.blogspot.com/2017/11/downloading-and-installing-adobe-scripts.html

 

DomebleAuthor
Participant
October 13, 2023

Thank you Stephen. Learnt something new there (with Conditions), however when running the Action, the error now is '

'The command “If” is not currently available'...'if' being the condition. Ill check out your other suggestions

 

DomebleAuthor
Participant
October 13, 2023

I know nothing about scripting so Im going to steer clear of that for now as I need to get this project done.