png-chunk-itxt
Version:
Create or parse a PNG iTXt chunk that stores unicode text data in PNG images
11 lines (10 loc) • 318 B
TypeScript
export interface ITxtChunk {
keyword: string;
compressionFlag: boolean;
compressionMethod: number;
languageTag: string;
translatedKeyword: string;
text: string;
}
export declare function decodeSync(data: Uint8Array): ITxtChunk;
export declare function encodeSync(chunk: ITxtChunk): Uint8Array;