Skip to main content
Participant
July 1, 2023
Question

save psd to exr in python

  • July 1, 2023
  • 1 reply
  • 344 views

Is it possible to save psd image to exr in python. I have come across openimageio but that supports 8 bit depth images only. What if one wants to save heavier images to exr. ?

 

# save as exr
import OpenImageIO as oiio

sourcefile = '/path/to/sourcefile.psd'
buf = oiio.ImageBuf(sourcefile)

for layer in range(buf.nsubimages):
    buf.reset(sourcefile, subimage=layer)
    buf.write('/tmp/mylayer_{l}.exr'.format(l=layer))

 

 

This topic has been closed for replies.

1 reply

sinhurryAuthor
Participant
July 10, 2023

their is a need to export psd as exr. Their is nothing available. What is available 

is only for 8 bit. What when the need is to export to 32 bit.

 

# save as exr
import OpenImageIO as oiio

sourcefile = '/path/to/sourcefile.psd'
buf = oiio.ImageBuf(sourcefile)

for layer in range(buf.nsubimages):
    buf.reset(sourcefile, subimage=layer)
    buf.write('/tmp/mylayer_{l}.exr'.format(l=layer))

 

 

What can be a head start in this direction ?