Skip to content

Always encode /icon DMI descriptions in a zTXt chunk#2527

Merged
wixoaGit merged 2 commits intoOpenDreamProject:masterfrom
wixoaGit:always_encode_zTXt
Mar 9, 2026
Merged

Always encode /icon DMI descriptions in a zTXt chunk#2527
wixoaGit merged 2 commits intoOpenDreamProject:masterfrom
wixoaGit:always_encode_zTXt

Conversation

@wixoaGit
Copy link
Member

@wixoaGit wixoaGit commented Mar 9, 2026

tg has code expecting a DMI to always have a zTXt chunk, and has no support for tEXt chunks. ImageSharp wasn't compressing the text because it didn't exceed a length threshold.

I also added support for length(file) which returns a file's size.

@boring-cyborg boring-cyborg bot added the Runtime Involves the OpenDream server/runtime label Mar 9, 2026
@wixoaGit wixoaGit merged commit 3041971 into OpenDreamProject:master Mar 9, 2026
19 checks passed
@wixoaGit wixoaGit deleted the always_encode_zTXt branch March 9, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Runtime Involves the OpenDream server/runtime size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant