200dpi image save

Hello,
I am trying to save 200dpi image thru aspose, here is by code below. I am not sure if 'lobjImageOption.Resolution = 200 changes actual dpi resolution.
By default it is saving the TIF as 96dpi and I see quality is little blur. How can I save the 200dpi images and improve quality of saved image thru aspose?
Please update.
Thanks,
Vinay Hattarki

Dim lobjDocument As Aspose.Words.Document = Nothing
Dim lobjImageOption As New Aspose.Words.Rendering.ImageOptions
lobjImageOption.TiffCompression = Aspose.Words.Rendering.TiffCompression.Ccitt4
lobjDocument = New Aspose.Words.Document("C:\Temp.Doc")
'lobjImageOption.Resolution = 200
lobjDocument.SaveToImage(liPageNo, 1, lsTifName, lobjImageOption)

Hi

Thanks for your request. Please try using LZW compression:

ImageOptions opt = new ImageOptions();
opt.TiffCompression = TiffCompression.Lzw;
Document doc = new Document(@"Test237\in.doc");
opt.Resolution = 200;
doc.SaveToImage(0, doc.PageCount, @"Test237\out.tif", opt);

Best regards.

When I use the compression Lzw it makes the image to grow to 698 KB which is a lot !!! We are using ASPOSE to replace the existing system save thru UDC and it saves the same image as 35KB including 200dpi.
With the change below it did save the image to 200dpi but image size is big.
Is there any way that I can have size less and resolution to 200dpi ?
opt.TiffCompression = TiffCompression.Lzw
Thanks,
Vinay Hattarki

Hi

Thanks for your request. The problem with resolution occurs only if you use Ccitt3, Ccitt4 or Rle compression. I create new issue #7835 in our defect database regarding this problem. I will notify you as soon as it is fixed.
Currently, I can only advice you to use standard resolution.
Best regards.

Currently our existing system is using Ccitt4 compression and it is 200dpi with small file size.
When I try to assign Resolution =200 it is not working and set back to 96
I hope you have noted that down as well bug in the system.
We should be able to use code below, which is not working currently.

lobjImageOption.TiffCompression = Aspose.Words.Rendering.TiffCompression.Ccitt4
lobjImageOption.Resolution = 200

Thanks,
Vinay Hattarki

Hi

Thanks for your request. Yes, this issue is considered as a bug and I will notify you as soon as it is fixed.
Best regards.

The issues you have found earlier (filed as 7835) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(3)