seikichi / tiff.js

tiff.js is a port of LibTIFF by compiling the LibTIFF C code with Emscripten.
Other
387 stars 98 forks source link

Can't view tiff scanned at 600 dpi #29

Open kabbagepatch opened 6 years ago

kabbagepatch commented 6 years ago

I was testing the tiff.js in a React component I had, and I realized that I can't view tiffs scanned 600 dpi on an iPad or iPhone. Console has the warning "Canvas area exceeds the maximum limit (width height > 16777216)." My best guess is that the issue is because the tiff was scanned at 600 dpi from an A4-size page, making the canvas area 600 8.5 600 11, which is indeed greater than 16777216. This works properly on my desktop browsers, but not on iPad or iPhone.