mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
Fix error reading metadata
This commit is contained in:
@@ -199,8 +199,8 @@ namespace VRCX
|
||||
|
||||
await print.SaveAsPngAsync(tempPath);
|
||||
|
||||
var oldPngFile = new PNGFile(path);
|
||||
var newPngFile = new PNGFile(tempPath);
|
||||
var oldPngFile = new PNGFile(path, false);
|
||||
var newPngFile = new PNGFile(tempPath, true);
|
||||
|
||||
// Copy all iTXt chunks to new file
|
||||
var textChunks = oldPngFile.GetChunksOfType(PNGChunkTypeFilter.iTXt);
|
||||
|
||||
@@ -35,7 +35,7 @@ public partial class AppApi
|
||||
}
|
||||
}
|
||||
|
||||
using var png = new PNGFile(path);
|
||||
using var png = new PNGFile(path, false);
|
||||
metadata.Add("fileResolution", PNGHelper.ReadResolution(png));
|
||||
|
||||
var creationDate = File.GetCreationTime(path);
|
||||
|
||||
Reference in New Issue
Block a user