From e57f371d39ff66cff24cb391cd4935b3a3df6de7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wetteren=20R=C3=A9mi?= Date: Thu, 2 Apr 2020 10:07:36 +0200 Subject: [PATCH] Add tiff tags specification command --- UTIF.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UTIF.js b/UTIF.js index 1884480..ac77911 100644 --- a/UTIF.js +++ b/UTIF.js @@ -54,8 +54,8 @@ this.K(a):this.J(a);if (f)return this.H(a)}return a}}; UTIF.JpegDecoder=g})()})( * @param Object [optional]: IFD object * @return ArrayBuffer of the binary TIFF file */ -UTIF.encodeImage = function(pixelList, w, h, metadata) -{ +UTIF.encodeImage = function(pixelList, w, h, metadata) { + // See TIFF Tags specifications : https://www.loc.gov/preservation/digital/formats/content/tiff_tags.shtml let idf = { "t256":[w], // Image width "t257":[h], // Image length