feat: Rewrite png metadata handling, new VRC metadata #377

Closed
opened 2026-04-05 16:18:22 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @GroovyTeacup on 8/1/2025

  • PNG-specific functionality is now more generic/standalone so it shouldn't need to be looked at most of the time and the interface is simple enough if required.
  • Can now easily handle/iterate over multiple chunks of the same type, like iTXt.
  • With that now possible, VRChat metadata can now be parsed alongside VRCX metadata (VRC metadata will override vrcx for applicable fields on the assumption it's more "trustworthy")
  • Optimized calls to the bruteforce search for old LFS/screenshotmanager data by checking for a start-of-file chunk that doesn't exist unless its an older picture made by one of these mods. This ensures the somewhat expensive function is no longer run on every file

WIP

*Originally created by @GroovyTeacup on 8/1/2025* - PNG-specific functionality is now more generic/standalone so it shouldn't need to be looked at most of the time and the interface is simple enough if required. - Can now easily handle/iterate over multiple chunks of the same type, like iTXt. - With that now possible, VRChat metadata can now be parsed alongside VRCX metadata (VRC metadata will override vrcx for applicable fields on the assumption it's more "trustworthy") - Optimized calls to the bruteforce search for old LFS/screenshotmanager data by checking for a start-of-file chunk that doesn't exist unless its an older picture made by one of these mods. This ensures the somewhat expensive function is no longer run on *every* file WIP
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/VRCX#377