We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose + Mono + ubuntu images issue

Apose is having image size issues when saving images from a doc to html (tested on Aspose 10.3 + Mono 2.6.7 (default ubuntu 11 mono framework) + ubuntu 11.04).

Attached zip files contain images under image folders, both are converted with the same mono and aspose, but one is on ubuntu and other is on Windows 7.

You can see that for some reason the images is getting saved with an enlarged transparent area.

Any ideas?

Thanks

Brian

Hi Brian,

Thanks for your inquiry.

I managed to reproduce the issues on my side. For the most part, Aspose.Words runs well on Mono. However there are a few troubles with rendering to images that we will try and fix. We will keep you informed of any developments.

Thanks,

Also, you may beable to avoid these issues by setting ScaleImageToShapeSize to false in HtmlSaveOptions. This will cause conversion to run faster but the loading of the page in the browser may be slower.

Thanks,

Thanks Adam, one other thing.

Setting HtmlSaveOptions like this:
saveOptions.ScaleImageToShapeSize = false;
saveOptions.ImageResolution = 300;

will not scale image images up on Ubuntu 11.04 and Mono 2.6.7.

I Tested it on Windows + Mono 2.6.7 and it seems to work OK., just linux it have problems.

Thanks

Hi

Thanks for your request. The problems with images on Mono is causes by the fact that working with graphics in Mono and .NET is quite different. This sometimes causes problems upon converting/resizing images. So to make output acceptable you should make that images in the document will be exported to HTML as is without any transformations.

You can try exporting metafiles in your document as metafiles (note some browsers does not support metafiles):

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/aspose.words.saving.htmlsaveoptions.exportmetafileasraster.html

You should disable scaling as Adam suggested.

Regarding your code, ImageResolution option has an effect if ScaleImageToShapeSize is true, so you can remove this line of code:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/aspose.words.saving.htmlsaveoptions.imageresolution.html

Best regards,

The issues you have found earlier (filed as WORDSNET-5158) have been fixed in this .NET update and this Java update.


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

The issues you have found earlier (filed as WORDSNET-5157) have been fixed in this .NET update and this Java update.


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