Re: WebImageViewer - image quality low
Started by Thread77 at 06-22-2009 19:52. Topic has 5 replies.
|
|
06-22-2009, 19:52
|
Thread77
Joined on 12-08-2008
Posts 14
|
WebImageViewer - image quality low
|
 
 
|
|
|
Hello,
I'm currently having to take a tif image and save it to pdf. Later, I'm needing to load it back into a WebImageViewer and WebThumbnailViewer1 component - to do this I'm taking the pdf and saving it back out as a tif. If I manually open the tif after converting from pdf the picture quality seems fine. But when it comes up in the WebImageViewer and thumbnail viewer the image looks much poorer in quality. I am using TifLzw format to keep the file size low, I'm not sure if that is causing an issue. Is there a setting I'm missing? I'm just unsure why the file looks fine if I open it in Windows Explorer but it looks poor when viewing via the image viewer and thumbnail viewer. I tried setting the pdf.Option.XResolution and YResolution to 300. That helped but didn't solve the problem. Any tips would be greatly appreciated!
Thanks! Richard
|
|
|
|
|
Report
|
|
|
|
06-23-2009, 4:47
|
Adam Boulad

Joined on 09-16-2007
Posts 1,313
|
Re: WebImageViewer - image quality low
|
 
 
|
|
|
Richard, Are you setting the WebImageViewer.UseDpi Property to true? If you are setting it to true and you still face a problem, send me a small sample PDF file that is showing the problem in a ZIP or RAR file and the steps that you are doing to load and display the file. You can either post it here (don't use the preview feature) or send it to support@leadtools.com and mention this post.
Adam Boulad LEADTOOLS Technical Support
|
|
|
|
|
Report
|
|
|
|
06-23-2009, 9:16
|
Thread77
Joined on 12-08-2008
Posts 14
|
Re: WebImageViewer - image quality low
|
 
 
|
|
|
Hi,
Thanks for your response - I tried setting the UseDPI property but still get the same issue. Attached is a sample pdf and the resulting tif image. I've also included the code I'm using. I have a thumbnailviewer and a pan viewer on the site and the problem is most evident on these two controls. The WebViewer actually looks like it may be ok after I set the UseDPI - or at least it looks more like the tif does if opened manually. But the thumbnail and pan viewers come up rather garbled - I didn't see a UseDPI on either one of them.
Thanks! Richard
|
|
|
|
|
Report
|
|
|
|
06-23-2009, 9:20
|
Thread77
Joined on 12-08-2008
Posts 14
|
|
|
Sorry I don't think the attachment came through - trying again
|
|
|
|
|
Report
|
|
|
|
06-23-2009, 11:42
|
Adam Boulad

Joined on 09-16-2007
Posts 1,313
|
Re: WebImageViewer - image quality low
|
 
 
|
|
|
Richard, Try to save the image to 1- Bits Per Pixel instead of 24 and then load.
Adam Boulad LEADTOOLS Technical Support
|
|
|
|
|
Report
|
|
|
|
06-23-2009, 12:11
|
Thread77
Joined on 12-08-2008
Posts 14
|
Re: WebImageViewer - image quality low
|
 
 
|
|
|
That worked perfectly, thanks for your help!
|
|
|
|
|
Report
|
|
|
|
|
LEAD Support Fo... » Developer » Internet » Re: WebImageViewer - image quality low
|
|
Copyright LEAD Technologies, Inc. 2009
