8

I am looking for a way to convert a Tiff image into a png so modern browsers can render it. I have looked at Tiffus, but that doesn't look like it is being developed anymore. I have also tried writing a conversion program in C# and sending through JSIL, but that didn't work either. I have also tried using Tiff-js but the sample project isn't working. Does anyone know how to do this? I know I can do it in C#/server-side but we want to try to do it client side.

Community
  • 1
  • 1
gblock
  • 790
  • 4
  • 11
  • 25
  • 2
    As far as I know, TIFF is just some kind of image-container. There can be lots of compression formats and lots of different color codings inside. I think there are even multi-page TIFFs. Can you specify a concrete TIFF-format? – Christian Kuetbach Jul 31 '13 at 19:57
  • @ChristianKuetbach We are using 1 bit, CCITT Group 4 FAX – gblock Jul 31 '13 at 20:21
  • 2
    @CameronTinker We can already do it server-side using System.Drawing.Bitmap. We want to see if there is a client-side way to do it. – gblock Jul 31 '13 at 20:50

2 Answers2

16

I ported LibTIFF to Javascript with Emscripten ( https://github.com/seikichi/tiff.js , demo: http://seikichi.github.io/tiff.js/basic.html)

seikichi
  • 1,251
  • 13
  • 15
1

I would recommend to use UTIF.js, that can not only decode but also encode in TIFF format. Supports Black & White, Grayscale, RGB and Paletted images. Supports Fax 3 and Fax 4 (CCITT), JPEG, LZW, PackBits and other compressions (1,3,4,5,6,7,8,32773,32809)

Cris69
  • 520
  • 1
  • 14
  • 40