mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-23 08:43:50 +02:00
Fix applying VRCX metadata to photos
This commit is contained in:
@@ -262,8 +262,8 @@ namespace VRCX
|
|||||||
if (newChunkIndex == -1) return false;
|
if (newChunkIndex == -1) return false;
|
||||||
|
|
||||||
// If this file already has a text chunk, chances are it got logged twice for some reason. Stop.
|
// If this file already has a text chunk, chances are it got logged twice for some reason. Stop.
|
||||||
var existingiTXt = FindChunkIndex(png, "iTXt");
|
// var existingiTXt = FindChunkIndex(png, "iTXt");
|
||||||
if (existingiTXt != -1) return false;
|
// if (existingiTXt != -1) return false;
|
||||||
|
|
||||||
var newChunk = new PNGChunk("iTXt");
|
var newChunk = new PNGChunk("iTXt");
|
||||||
newChunk.InitializeTextChunk("Description", text);
|
newChunk.InitializeTextChunk("Description", text);
|
||||||
|
|||||||
Reference in New Issue
Block a user