开发者

Image quality in "Web Page, Filtered"

开发者 https://www.devze.com 2023-01-21 19:21 出处:网络
This is an important issue and I would be grateful for a solution. I convert a document (RTF) with several embedded images to HTML with Word 2010. The original quality of all images is 200 dpi. When

This is an important issue and I would be grateful for a solution.

I convert a document (RTF) with several embedded images to HTML with Word 2010. The original quality of all images is 200 dpi. When saving as "Web Page, Filtered", all images are reduced to 96 dpi, despite of what I set in the "Save As" dialog -> Tools -> Web Options -> P开发者_Python百科ictures -> Pixels per inch. I would like to keep the original image quality.

Setting ActiveDocument.WebOptions.PixelsPerInch with VBA is also ignored. Note that other options, e.g., ActiveDocument.WebOptions.AllowPNG work fine.

When I save as "Web Page" (without Filtered; VML enabled) the images are saved in original quality. However, since the image names are numbered differently, I cannot simply copy the images to the filtered version. Matching the images by hand is not an option.

Any help would be appreciated! Please do not suggest other Word/RTF to HTML converters - I have tried several and the results were not satisfactory for my document.

Note that I have also posted this in Microsoft Answers, but did not get an answer yet. There is a similar but unanswered topic on stackoverflow.


I met this or similar problem too when trying to save to HTML a textbook manuscript with elaborate graphical figures: they would get dithered badly, messing up all fine line art and type. Completely by chance I found a solution that worked for me: Save it as IE 6.0 HTML rather than the default IE 4.0 HTML. (That can be adjusted e.g. via the Tools menu of the Save As dialog: Save As... -> Tools (in the top right corner) -> Web Options.) This way the images are saved as PNG not GIF and, quite magically, that also makes the Word image renderer do a much better job for the same DPI!


Sorry to be the bearer of bad news - this is by-default for Filtered webpage saves in Word. All mso tags are removed and it's made as small as possible by lowering the DPI to 96.


Tools->Options->General->Web Options->Pictures

0

精彩评论

暂无评论...
验证码 换一张
取 消