image-js / tiff

TIFF image decoder written entirely in JavaScript
MIT License
190 stars 17 forks source link

IE Error : SCRIPT1003: Expected ':' #13

Closed akbeeram closed 4 years ago

akbeeram commented 6 years ago

I am trying to use this to count the number of pages in a tiff document. This works fine in Chrome & FF but IE gives an error. When I googled I found that the object notation should be proper({key: value}) for IE. The IE debugger points to this line: const tags = { standard, exif, gps }; Can this be changed to : const tags = { standard: standard, exif: exif, gps: gps };

hipstersmoothie commented 6 years ago

The README says that the library is written in ES6, so you'll need to transpile the source to make it work in older browsers.