“已过滤网页”中的图像质量

发布于 2024-09-28 19:30:10 字数 815 浏览 1 评论 0原文

这是一个重要的问题,如果有解决方案,我将不胜感激。

我使用 Word 2010 将包含多个嵌入图像的文档 (RTF) 转换为 HTML。所有图像的原始质量均为 200 dpi。当另存为“网页,已过滤”时,所有图像都会减小到 96 dpi,无论我在“另存为”对话框中设置如何 ->工具->网页选项 ->图片->每英寸像素数。我想保持原始图像质量。

使用 VBA 设置 ActiveDocument.WebOptions.PixelsPerInch 也会被忽略。请注意,其他选项(例如 ActiveDocument.WebOptions.AllowPNG)工作正常。

当我另存为“网页”(未过滤;启用 VML)时,图像将以原始质量保存。但是,由于图像名称的编号不同,我不能简单地将图像复制到过滤版本。手动匹配图像不是一种选择。

任何帮助将不胜感激! 请不要推荐其他 Word/RTF 到 HTML 转换器 - 我已经尝试了几种,但结果对我的文档并不令人满意。

请注意,我还在 Microsoft Answers,但尚未得到答复。 stackoverflow 上有一个类似但未解答的主题。

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 -> Pictures -> 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

晌融 2024-10-05 19:30:10

工具->选项->常规->Web选项->图片

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

南七夏 2024-10-05 19:30:10

当我尝试将带有精致图形的教科书手稿保存为 HTML 时,我也遇到了这个或类似的问题:它们会严重抖动,弄乱所有精美的线条艺术和类型。完全偶然,我找到了一个适合我的解决方案:将其另存为 IE 6.0 HTML,而不是默认的 IE 4.0 HTML。 (可以通过“另存为”对话框的“工具”菜单进行调整:另存为... -> 工具(位于右上角)-> Web 选项。)这样,图像将保存为 PNG 而不是 GIF, ,非常神奇的是,这也使得 Word 图像渲染器在相同的 DPI 下做得更好!

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!

简单气质女生网名 2024-10-05 19:30:10

抱歉,我要告诉大家一个坏消息 - 这是 Word 中保存的过滤网页的默认。所有 mso 标签都被删除,并通过将 DPI 降低到 96 使其尽可能小。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文