Hi,
Hello,
The issues you have found earlier (filed as CONVERSIONNET-889) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by groupdocs.notifier.
Hi,
Hi ,
Thank you for sharing details. Live demo site is using different library and GroupDocs.Conversion 3.x.x are Next Generation API which is UI less so you can use it in any application.
Regarding image quality you can specify the image quality by setting image DPI property
//
ImageSaveOptions
new ImageSaveOptions { ConvertFileType = ImageFileType.Jpg,
OutputType = OutputType.String, Dpi = 1600 }
If you will need any help or you
will have any other questions please feel free to ask.
Warm Regards
Hi,
Have you tested the code which you recommand for us?
ImageSaveOptions
new ImageSaveOptions { ConvertFileType = ImageFileType.Jpg,
OutputType = OutputType.String, Dpi = 1600 }
I have tested it. and set the dpi as 1600. But I checked the converted file property. the dpi value still is 96. Could you help us check this?
thank you!
Hi,
Sorry for the inconvenience
ImageSaveOptions is our standard classes to specify the image related properties that should work, it has Dpi property and also have another property related to image quality which is JpegQuality with default value is 100 both effect the image quality as per image output type.
But now we can see in this release its not working properly, we have notified this issue to product team for solution, once we have any update from product team we will update you here.
Thank you for your patience.
Warm Regards,
Hi,
We’d recommend you to migrate to GroupDocs.Conversion for .NET 20.4. Please have a look at the migration notes. API provides a lot of properties when converting a source file (e.g. Excel) to image file format, such as:
- Image resolution
- Grayscale
- Contrast
- Brightness
Have a look at this documentation article and below code snippet:
string outputFileTemplate = Path.Combine("c:\output", "converted-page-{0}.png");
SavePageStream getPageStream = page => new FileStream(string.Format(outputFileTemplate, page), FileMode.Create);
using (Converter converter = new Converter("sample.xlsx"))
{
ImageConvertOptions options = new ImageConvertOptions
{
Format = ImageFileType.Png,
FlipMode = ImageFlipModes.FlipY,
Brightness = 50,
Contrast = 50,
Gamma = 0.5F,
Grayscale = true,
HorizontalResolution = 300,
VerticalResolution = 100
};
converter.Convert(getPageStream, options);
}