Skip to content

Add load_exr_from_buffer() to Image #12749

Closed
@blackears

Description

@blackears

Describe the project you are working on

Program creating a database of high quality images.

Describe the problem or limitation you are having in your project

At the moment, the Image class exposes a number of load_*_from_buffer() methods for a variety of image formats. There is even a method to save files to EXR buffers. There is no method for loading EXR files from buffers though. Since Godot has EXR support, it would be helpful to have this method.

EXR is also a high quality image format. The other options (except maybe PNG) will reduce the quality of your image. Adding this method will be useful because it will let you read the buffer that you saved with the save_exr_to_buffer() command.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Add a method to Image that extends the ability to load EXR files from buffers.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

Add the method load_exr_from_buffer() to Image.

If this enhancement will not be used often, can it be worked around with a few lines of script?

No

Is there a reason why this should be core and not an add-on in the asset library?

Requires modifying Image class.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions