Re:Mr Tiff
by flufluflufluffy on Wednesday November 05, 2025 @05:16AM
(#45821359)
We have hundreds of thousands of TIFF files where I work which are scans of questionnaires filled out by clinical trial participants. The one annoying thing is that web browsers don’t natively display them. I did some incredibly inefficient JavaScript bs to decode the pixel data, plop it in a canvas, get a PNG data url from it, and set that as the src for an img element xD (why not just display the canvas? because I was too lazy to manually handle resizes…) good times
[ Parent
| on HN ]
There are no comments on this comment yet.