Skip to content

Image Library API endpoint #4282

Description

@ChadJeffreyAnderson

Is this a feature relevant to companion itself, and not a specific module?

  • I believe this to be a feature for companion, and is not specific to a module

Is there an existing issue for this?

  • I have searched for similiar existing issues

Describe the feature

An API endpoint, e.g. for HTTP /api/image-library/<name>/png64, that gets the named image's png64 string and, more importantly, has a ?png64= parameter that accepts posted strings.

This is related to the remote images discussion in #4226 but marginal enough I think to warrant a separate thread. Feel free to close if this should be brought there instead.

Usecases

I rely heavily on the (admittedly undocumented) /style?png64= parameter to update button thumbnails via external scripts. In the current v5 beta, this parameter still updates a button's bottommost image element, but only for buttons created pre-v5. I'll get by as long as that continues to function, but if I could instead point the script to an item in the Image Library, I'd just have the buttons reference that instead.

I don't know what the plans are for the /style resource going into v5, so maybe something like this is already being considered along with its parameters for text and color

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status
    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions