views:

553

answers:

4

We are creating a client in Silverlight that will show a lot of TIFF images. Silverlight natively do not support TIFF. I need a control/class to convert tiff to jpg in runtime inside the Silverlight client. Any idea?

+1  A: 

In Silverlight forum last friday I received this post:


Re: How to Convert TIFF to JPG Inside Silverlight, client side, using a control or a class/function? 12-18-2009 5:38 PM |

If you're willing to use a third-party library, check out ImageGear for Silverlight provided by Accusoft Pegasus. It's a 100% managed Silverlight toolkit (http://www.accusoft.com/ig-silverlight.htm), and runs entirely on the client. TIFF support is included (among lots of other formats).
Hope this helps, Casey


Augusto Camargo
A: 

I was successful displaying TIFFs in Silverlight. It's easy to port the free LibTiff.NET library to Silverlight, just 3-4 minor tweaks required.

The library itself is quite legacy-like and raw to use and one still needs to have some knowledge about the inner workings of the TIFF format in order to be able to extract the image data the way one needs it.

But it's doable and the bits and pieces can then be chiseled into a WriteableBitmap.

herzmeister der welten
helping out @Dataji who probably couldn't commenthttp://stackoverflow.com/questions/1923140/how-to-convert-tiff-to-jpg-inside-silverlight-client-side-using-a-control-or-a/2712743#2712743
kenny
Can you make your changes public?
kenny
@kenny they're gonna release a new version soon with the small changes that enable Silverlight support. I also contributed a demo application. Write them an email and you can have a beta version.
herzmeister der welten
A: 

Hi, can you post some sample of extracting image data using LibTiff? Thanks!

Dataji
A: 

Not sure you are interested in solution by now, but we've just released LibTiff.Net 2.0 with Silverlight support, improved documentation and samples.

There is Silverlight Test Application in source package that shows how to create WriteableBitmap from TIFF images in Silverlight. Maybe it will help you or others.

Bobrovsky