English 中文(简体)
如何在网页上处理图像的LOT?
原标题:How to handle A LOT of images in a webpage?

So im making a website and i showed it to a fellow web developer. I want to make my website a "visual experience" and every page will have at least 30 50x 50 thumbnails, a 120 x 100 image, and a couple more thumbnails. it will a a members only page so you can image, the more register users, we will have MUCH MUCH more images. in fact, each member can have his/her own photo album, which will be another set of images.

因此,他真心担心,我的场址不会得到优化,他说,除非对REALLYREALLY昂贵的服务器进行投资,否则这些图像不会立即装上。 用户必须等到图像的秒钟才能装上。

So i was wondering is there any techniques to fix this? When i look at the src attribute of the images of websites like facebook.com ,it goes to places like http://profile.ak.fbcdn.net/hprofile-ak-snc4/27537_45309870078_2551_s.jpg. Is that some sort of technique to store the all the images on a different server/website?

因此,基本来说,不可能有一个非常密集的图像网站,而我想知道,确保用户经验尽可能顺利,而且用户不会等待个人图像的负荷。 感谢。

最佳回答

这些服务被称为CDNs,连续交付网络。 其中一些大地有自己。

问题回答
  1. Use many domains for your images as browsers have limit (IE: 2) of outgoing connection to each domain.
  2. Use expiry headers to avoid multiple downloads of the same image.
  3. Generate thumbnails on the server (do not resize images in browser) to minimize required bandwidth.
  4. Invest in Akamai.

从根本上说,解决这一问题的方法是使用Contentliver Network,如Akamai。 从根本上说,你只是把一个没有用于处理请求的服务器上更快捷接入的形象打上了。

正如其他答复所建议的那样,除了使用CDN外,还试图避免或拖延你不需要加装的图像。 例: 随机搜索谷歌图像,通过结果进行播种。 参看在你roll倒时,图像是如何装满的? YUI 2似乎是这方面的一个好选择。

您也可以在阿帕奇服务器前使用 n作为代理服务器。





相关问题
Resources for Image Recognition

I am looking for a recommendation for an introduction to image processing algorithms (face and shape recognition, etc.) and wondered if anyone had an good recommendations, either for books, ...

Good reference book for digital image processing? [closed]

I am learning digital image processing on my own and would like recomendations on good reference books. If you know of books to definately stay away from that would be useful as well. Thanks

Python Tesseract can t recognize this font

I have this image: I want to read it to a string using python, which I didn t think would be that hard. I came upon tesseract, and then a wrapper for python scripts using tesseract. So I started ...

What s the quickest way to parallelize code?

I have an image processing routine that I believe could be made very parallel very quickly. Each pixel needs to have roughly 2k operations done on it in a way that doesn t depend on the operations ...

Computing object statistics from the second central moments

I m currently working on writing a version of the MATLAB RegionProps function for GNU Octave. I have most of it implemented, but I m still struggling with the implementation of a few parts. I had ...

Viola-Jones face detection claims 180k features

I ve been implementing an adaptation of Viola-Jones face detection algorithm. The technique relies upon placing a subframe of 24x24 pixels within an image, and subsequently placing rectangular ...

热门标签