The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Support additional PNG info.
shiimizu51714141435d
diff --git a/web/scripts/pnginfo.js b/web/scripts/pnginfo.jsindex 83a4ebc86..169609209 100644--- a/web/scripts/pnginfo.js+++ b/web/scripts/pnginfo.js@@ -24,7 +24,7 @@ export function getPngMetadata(file) {const length = dataView.getUint32(offset);// Get the chunk typeconst type = String.fromCharCode(...pngData.slice(offset + 4, offset + 8));- if (type === "tEXt" || type == "comf") {+ if (type === "tEXt" || type == "comf" || type === "iTXt") {// Get the keywordlet keyword_end = offset + 8;while (pngData[keyword_end] !== 0) {@@ -33,7 +33,7 @@ export function getPngMetadata(file) {const keyword = String.fromCharCode(...pngData.slice(offset + 8, keyword_end));// Get the textconst contentArraySegment = pngData.slice(keyword_end + 1, offset + 8 + length);- const contentJson = Array.from(contentArraySegment).map(s=>String.fromCharCode(s)).join('')+ const contentJson = new TextDecoder("utf-8").decode(contentArraySegment);txt_chunks[keyword] = contentJson;}