seikichi/tiff.js

Can't view tiff scanned at 600 dpi

Opened this issue · 0 comments

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.