Can we compress .exr files?

This looks promising for command-line use, could run it after making the .exr file with unity to compress it? https://github.com/OpenImageIO/oiio

by user 103054507105067008

From three:

OpenEXR loader currently supports uncompressed, ZIP(S), RLE, PIZ and DWA/B compression.
Supports reading as UnsignedByte, HalfFloat and Float type data texture.

DWA/B is ideal, we use Blender to export our .EXR files as DWAA/DWAB https://docs.blender.org/api/3.4/bpy_types_enum_items/exr_codec_items.html

by user 103054507105067008

Hm, TinyExr doesn’t support that with the note “not planned, patent encumbered”

I looked around and found OpenImageIO linked above which has better support for EXR compression
https://github.com/OpenImageIO/oiio

by user 103054507105067008

Love stumbling across developer snarkyness about stuff like this :joy: https://github.com/syoyo/tinyexr/pull/168

by user 103054507105067008

Thing is we always need Windows / Linux / Mac / ARM Mac support and ideally something that has a fully ready npm package :slightly_smiling_face: OIIO doesn’t have that as far as I’m aware

Still searching for something like that :+1: in the meantime if there is any possibility of telling Needle to not touch the .exr file that would be ace as I can keep using Blender to export my EXRs as needed for small file sizes

by user 103054507105067008