如何为MSI安装程序优化JPEG图像? [英] How do you optimize a JPEG image for MSI installers?

查看:110
本文介绍了如何为MSI安装程序优化JPEG图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理启动屏幕徽标,并且我注意到在不同的OS版本上,此图像会失真,但是在处理Windows 8.1时它可以正常工作,但在Windows 7或Vista上却不行.我一直在将Adobe Fireworks与Illustrator结合使用来生成它,我必须尝试过许多不同的设置,但是我无法在所有操作系统上都获得相同的体验.

I am dealing with a splash screen logo and I've noticed that on different OS versions this image gets distorted, but it happens to work when dealing with Windows 8.1, but not on Windows 7 or Vista. I've been using Adobe Fireworks in conjunction with Illustrator to generate it, and I must have tried a ton of different settings but I can't get the same experience across all operating systems.

我将其加载到我的WiX项目中,如下所示:

I load it into my WiX project as follows:

<Binary Id="SplashBinary" SourceFile="Splash.jpg"/>

我这样使用它:

<Control Id="SplashBitmap" Type="Bitmap" X="0" Y="0" Width="373" Height="252" Text="SplashBinary" TabSkip="yes" Sunken="no" Disabled="yes" />

我尝试使用上面的宽度和高度,但是在8.1上看起来不太好(太模糊),所以我在图像上将其加倍以在Windows 8.1中获得更清晰的结果(在8.1中是完美的).但同样,它的别名似乎在7和Vista上被弄乱了.谁能阐明我需要做些什么以获得一致的体验?我需要对图像进行什么处理才能将其导出,以便在这些平台上呈现出清晰的效果?

I've tried using the width and height above but it would not look good on 8.1 (too blurry), so I doubled it on the image to get a crisper result in Windows 8.1 (its perfect in 8.1). But again, it looks like its aliasing is messed up on 7 and Vista. Can anyone shed some light as to what I need to do to get a consistent experience? What do I need to do to my image to export it such that it renders a nice crisp result on these platforms?

推荐答案

我通过将图像放大精确到1.3333333333来使其工作(我从

I got it to work by scaling my image up by an exact factor of 1.3333333333 (I got this idea from this question):

[ Width  ] -> 373 * 1.3333333333 = 497.3333333209
[ Height ] -> 252 * 1.3333333333 = 335.9999999916

这是我曾经做过的最愚蠢的事情.我不知道为什么会这样.但是,现在在所有操作系统上看起来都很棒.这是一个必要的步骤,对此我感到非常不满意. PS:我也有300 PPI分辨率的图像.

This is the stupidest thing I've ever had to do. I don't know why this is the case. However, it now looks fantastic on all operating systems. I'm so displeased by this being a necessary step. PS: I also have my image at a resolution of 300 PPI.

这篇关于如何为MSI安装程序优化JPEG图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆