如何加载图像更快? [英] How to load image faster?

查看:67
本文介绍了如何加载图像更快?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我有几张图片需要根据用户动态加载

互动。每个图像大小约为6000x1500像素。我看到几个

网站,他们让图像模糊,模糊,模糊,图像变得清晰。我想知道如何做到这一点,或者你们都有比这更好的其他

解决方案。谁能给我一些建议和

如何实施?


谢谢

Chamnap

解决方案



" Chamnap" < ch *********** @ gmail.com写信息

新闻:11 ******************* ***@e16g2000pri.googlegr oups.com ...


您好,


我有几个图片需要根据用户动态加载

互动。每个图像大小约为6000x1500像素。我看到几个



Yikes。你确定你想要在一个块中呈现大小的图像吗?


网站它们会使图像模糊,模糊,模糊,图像变成



不,它们使图像增长,增长,在放大和缩小时缩小,收缩,

在缩小时收缩。


清除。我想知道如何做到这一点,或者你们都有比这更好的其他

解决方案。谁能给我一些建议和

的实现方式?



当用户点击放大时按钮(或点击图像的一个区域),

你预先加载较大的图像并设置一个间隔,一次放大图像几个b $ b像素,直到它到达大图像的大小。希望,到那个时候,b / b
,更大的图像被缓存,并且改变现在的模板原始的src将神奇地锐化它。如果没有,效果会更少

赏心悦目。


这些都与图像加载速度无关,但

你可以通过在页面加载时预加载更大的图像来创建感知速度。


Chamnap写道:


您好,


我有几张图片需要根据用户动态加载

互动。每个图像大小约为6000x1500像素。我看到几个

网站,他们让图像模糊,模糊,模糊,图像变得清晰。我想知道如何做到这一点,或者你们都有比这更好的其他

解决方案。谁能给我一些建议和

的实现方式?


谢谢

Chamnap


不确定,但这可能是因为图像是交错存储的..你随着时间的推移随后下载更多的res细节。

然而,为什么你使用这么大的图像时很少有电脑会以这样的尺寸显示它们... ...


为什么不调整它们的大小|?


Photoshop / photopaint是你的朋友。


自然哲学家于2007年7月10日在comp.lang.javascript上写道


Chamnap写道:


>你好,

我有几个图像需要根据用户的交互动态加载。每个图像大小约为6000x1500像素。我看到几个
网站,他们使图像模糊,模糊,模糊,图像变得清晰。我想知道如何做到这一点,或者你们都有比这更好的其他解决方案。谁能给我一些建议和实施方式?

谢谢
Chamnap



不确定,但这可能是因为图像是交错存储的..随着时间的推移,你需要随时下载更高的res细节。


然而为什么你这么大当很少有电脑将显示它们时,这些尺寸的图像会让我感到震惊......


为什么不调整它们的尺寸?



我同意


Photoshop / photopaint是你的朋友。



当你把钱存入口袋时,Irfanview会做得很好。


< http:// www。 irfanview.net/>


-

Evertjan。

荷兰。

(请将x''es更改为我的电子邮件地址中的点数。


Hello,

I have several images that need to be loaded dynamically based on user
interaction. Each image size is about 6000x1500 pixels. I see several
sites they make the image blur, blur, blur, and the image become
clear. I want to know how to do this, or maybe you all have other
solutions better than this. Can anyone give me some suggestions and
the way how to implement?

Thanks
Chamnap

解决方案


"Chamnap" <ch***********@gmail.comwrote in message
news:11**********************@e16g2000pri.googlegr oups.com...

Hello,

I have several images that need to be loaded dynamically based on user
interaction. Each image size is about 6000x1500 pixels. I see several

Yikes. Are you sure you want to present images that size in one chunk?

sites they make the image blur, blur, blur, and the image become

No, they make the image grow, grow, grow on zooming in and shrink, shrink,
shrink on zooming out.

clear. I want to know how to do this, or maybe you all have other
solutions better than this. Can anyone give me some suggestions and
the way how to implement?

When the user clicks the "zoom in" button (or clicks an area of the image),
you preload the larger image and set an interval to enlarge the image a few
pixels at a time until it reaches the size of the larger image. Hopefully,
by that time, the larger image is cached and changing the src of the now
blurry original will magically sharpen it. If not, the effect is less
pleasing.

None of this has anything to do with making the image load faster, though
you can create perceived speed by preloading the larger image on page load.


Chamnap wrote:

Hello,

I have several images that need to be loaded dynamically based on user
interaction. Each image size is about 6000x1500 pixels. I see several
sites they make the image blur, blur, blur, and the image become
clear. I want to know how to do this, or maybe you all have other
solutions better than this. Can anyone give me some suggestions and
the way how to implement?

Thanks
Chamnap

No sure, but it may be because the images are stored interleaved..you
download successively higher res detail as time goes by.

However why you are using such big images when few computers will
display them in that size beats me..

why not resize them|?

Photoshop/photopaint is your friend.


The Natural Philosopher wrote on 10 jul 2007 in comp.lang.javascript:

Chamnap wrote:

>Hello,

I have several images that need to be loaded dynamically based on user
interaction. Each image size is about 6000x1500 pixels. I see several
sites they make the image blur, blur, blur, and the image become
clear. I want to know how to do this, or maybe you all have other
solutions better than this. Can anyone give me some suggestions and
the way how to implement?

Thanks
Chamnap

No sure, but it may be because the images are stored interleaved..you
download successively higher res detail as time goes by.

However why you are using such big images when few computers will
display them in that size beats me..

why not resize them|?

I agree

Photoshop/photopaint is your friend.

Irfanview will do it nicely while you keep your money in your pocket.

<http://www.irfanview.net/>

--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)


这篇关于如何加载图像更快?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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