Jump to content

Batch process .exr to .png: how to get transparent background?

Recommended Posts

Hi there,

I was trying to batch process my blender rendered .exr files to png and even though the exr files are saved in RGBA, I cannot get them into png format with a transparent background. Regardless what I do, the backgorund is alsways black as one or more of the render layers in the exr shows a black background. I would only want the top view (RGBA) layer with the transparent background. How can I do that?

Thanks so much for your help!



Link to post
Share on other sites

Welcome to the Serif Affinity forums.

To get a transparent background you need to enable the menu option Document > Transparent Background. You could try recording a macro to enable that option, saving it from your Macro panel into your Library panel, and then running the macro as part of your batch job.

-- Walt

Windows 10 Home, version 20H2 (19042.685),
   Desktop: 16GB memory, Intel Core i7-6700K @ 4.00GHz, GeForce GTX 970
   Laptop (2021-04-06):  32GB memory, Intel Core i7-10750H @ 2.60GHz
, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU
Affinity Photo and Beta   / Affinity Designer and Beta  / Affinity Publisher and Beta

Link to post
Share on other sites

Hi Walt,

thank you very much for your quick reply.

I tried to record the Macro as you suggested, but unfortunately, it did not work. I am still getting PNGs with black background. I, then, tried another Macro to delete the layers with background and only keep the to layer, but I cant get this to do the job either. I am attaching pics of my EXR files with layers to better illustrate my problem. I need my final PNG only to contain the top layer "View Layer.Combined.RGBA". This needs to be achieved in a batch process as I need to apply this on several hundreds of animation stills.

Again,thank you very much for your help!

Best regards,


Screenshot 2021-03-22 083914.jpg

Screenshot 2021-03-22 083951.jpg

Link to post
Share on other sites

If you could post your original .exr file or an equivalent .afphoto file, we could try this for ourselves. We cannot really use your screenshot for this.


Windows 10, Affinity Photo 1.9.2 Designer 1.9.2 and Publisher 1.9.2 (mainly Photo), now ex-Adobe CC

CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630

Link to post
Share on other sites
Posted (edited)

Hello John,

I am attaching one of my exr files to this post. Thank you for your help,




Edited by Hidari
Problem is solved and I dont want to further spread this file.
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Please note there is currently a delay in replying to some post. See pinned thread in the Questions forum. These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.