local function t(t,n)local a=n.Data local E,I="",""for t in a:IterateBytes()do local n=string.char(t)if n=="\000"then E=I I=""else I=I..n end end t.Metadata[E]=I end return t
local function tEXt(file, chunk)
	local data = chunk.Data
	local key, value = "", ""
	
	for byte in data:IterateBytes() do
		local char = string.char(byte)
		
		if char == '\0' then
			key = value
			value = ""
		else
			value = value .. char
		end
	end
	
	file.Metadata[key] = value
end

return tEXt