mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-25 01:33:51 +02:00
Fix error reading metadata
This commit is contained in:
@@ -196,7 +196,7 @@ namespace VRCX
|
||||
/// </remarks>
|
||||
public static List<string> ReadTextMetadata(string path)
|
||||
{
|
||||
using var pngFile = new PNGFile(path);
|
||||
using var pngFile = new PNGFile(path, false);
|
||||
var result = new List<string>();
|
||||
var metadata = PNGHelper.ReadTextChunk("Description", pngFile);
|
||||
var vrchatMetadata = PNGHelper.ReadTextChunk("XML:com.adobe.xmp", pngFile);
|
||||
@@ -231,7 +231,7 @@ namespace VRCX
|
||||
|
||||
public static bool WriteVRCXMetadata(string text, string path)
|
||||
{
|
||||
using var pngFile = new PNGFile(path);
|
||||
using var pngFile = new PNGFile(path, true);
|
||||
var chunk = PNGHelper.GenerateTextChunk("Description", text);
|
||||
|
||||
return pngFile.WriteChunk(chunk);;
|
||||
|
||||
Reference in New Issue
Block a user