Skip to content

feat(plugins): Add images and image sets#6792

Open
Nerixyz wants to merge 2 commits intoChatterino:masterfrom
Nerixyz:feat/image-el-set
Open

feat(plugins): Add images and image sets#6792
Nerixyz wants to merge 2 commits intoChatterino:masterfrom
Nerixyz:feat/image-el-set

Conversation

@Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented Feb 2, 2026

When adding message construction and introspection, I left out images. This PR intends to add them.

Images are special, because plugin authors can specify a URL that Chatterino will load if the image is shown. While the plugin can't see the response, it still causes Chatterino to issue a request, so creating images will require the network permission.

Other than that, images and image sets are mostly straight forward. You can query them and on sets, you can change the images. Note that sets are value types, so getting an image set in Lua will always refer to a copy, not a reference.

When querying the empty image, Chatterino would try to access frames_ which is not set there. I wonder why this never caused any problems before (guess we filter empty images before layout?). But I added checks in the accessors.

@Mm2PL Mm2PL added the hold for release Wait with merging this PR or fully exploring this issue until the next release has been published. label Feb 3, 2026
@Mm2PL Mm2PL added the Feature: ALPHA Plugins Stuff related to ALPHA Lua plugin support label Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature: ALPHA Plugins Stuff related to ALPHA Lua plugin support hold for release Wait with merging this PR or fully exploring this issue until the next release has been published.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants