分几次加载图像

发布于 2024-07-18 03:02:02 字数 125 浏览 9 评论 0原文

我知道这是可能的。 我已经看过好几次了,但它总是让我震惊:“他们是如何做到这一点的?”。 这些在加载时构建的图像是某种渐进式图像加载。 它从低分辨率版本开始,然后是稍高的分辨率,然后稍高,直到加载完整质量。 有人知道该怎么做吗?

I know it is possible. I have seen it a couple of times, but it always struck me with: "how did they pull this off?". Those images that build up while loading, it's some kind of progressive image loading. It starts out with a low res version, and then a slightly higher res, and then slightly higher until full quality is loaded. Would anyone know how to do this?

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

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

发布评论

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

评论(3

意中人 2024-07-25 03:02:02

虽然渐进式 jpg 现在在 Flash 中显示(直到 fp 8 或 9 才显示,我不太记得是哪个版本),但我不相信它们实际上是渐进式加载的。 有一些解决方案可以伪造它,您始终可以加载较小的图像并调整其大小,但这不是很有效。

Ted on flex 有另一种解决方案来在加载时显示图像,但这并不完全是您想要的。

http://www.onflex.org/ted/ 2007/12/progressive-image-loading-with.php

While progressive jpgs now display in flash (up until fp 8 or 9 they didn't, I can't quite remember which version), I don't believe they actually load progressively. There are some solutions out there for faking it, you can always load and resize smaller images, but that's not very efficient.

Ted on flex has another solution to display an image as it loads, but it's not exactly what you're looking for.

http://www.onflex.org/ted/2007/12/progressive-image-loading-with.php

沉默的熊 2024-07-25 03:02:02

您可能只想使用保存为渐进式 JPEG 的图像。 然而,在渲染每个通道时显示图像取决于图像显示器,并且我不确定 Flash 是否这样做,或者等到完成的图像准备好。

You probably just want to use an image saved as a progressive JPEG. It's up to the image display to show the image as each pass is rendered, however, and I'm not sure if Flash does this, or waits until the completed image is ready.

离笑几人歌 2024-07-25 03:02:02

我自己从来没有这样做过,但我可能只会采用 6-7 个不同分辨率版本的图像,然后将它们相互叠加起来。 换句话说,具有从 0%-100% alpha 的最低分辨率补间版本,然后在其之上使用下一个最低分辨率补间版本,等等。

您可能需要事先在 Photoshop 中操作图像以获得您想要的效果。

I've never done this myself but I'd probably just take 6-7 different resolution versions of the image and alpha-tween them on top of each other. In other words have the lowest res version tween from 0%-100% alpha and then have the next lowest res version tween in on top of that etc, etc.

You might need to manipulate the images in photoshop beforehand to get the effect you want.

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