Skip to content

fix(io): can't read a png with the bitmap reader service

Description

This simplifies the configuration of module::io::bitmap::reader and module::io::bitmap::writer services. This also solves a bug which forces the developer to declare all the backends he needs to read/write. We now enable everything possible for the sake of simplicity.

Breaking change(s)

The former <backends> configuration is no longer supported, but this is not really a breaking change since we enable everything. Anyway, we did not use these two services so far.

How to test it?

In any app, add a service like:

<service uid="bitmap_reader_srv" type="sight::module::io::bitmap::reader">
    <inout key="data" uid="bitmap_image" />
    <file>path/to/image.png</resource>
</service>
...
<start uid="bitmap_reader_srv" />
...
<update uid="bitmap_reader_srv" />

Observe you don't get any loading error.

Related issue(s)

Closes #1205 (closed)

Edited by Flavien BRIDAULT

Merge request reports