将元数据保留在图像缩略图中的优点和缺点

发布于 2024-09-05 14:24:01 字数 215 浏览 3 评论 0原文

我正在努力优化一些中等高流量网站的网站加载速度。一些快速观察表明,创建 40 个图片缩略图(例如 138x138 JPG @75% 质量)会导致嵌入元数据的总大小为 700 Kb,剥离元数据的总大小为 258 Kb。这意味着大约 60% 的图像大小是元数据。

那么从缩略图中删除元数据有什么优点和缺点呢?是否有任何规定,例如您必须在图像中保留作者信息/版权信息?

任何见解将不胜感激。

I am working on optimizing site load speed for a few moderately high traffic sites. Some quick observations show that creating 40 picture thumbnails (e.g. 138x138 JPG @75% quality) results in 700 Kb total size with embedded metadata and 258 Kb with stripped metadata. Which means that roughly 60% of image size is metadata.

So what would be pros and cons of removing metadata from thumbnails? Are there any regulations, e.g. you must keep author info / copyright info in the images?

Any insights would be appreciated.

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

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

发布评论

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

评论(4

菩提树下叶撕阳。 2024-09-12 14:24:01

大多数国家/地区没有版权法规要求您在元数据中包含版权信息; 伯尔尼公约(包括美国在内的许多国家都遵守的协议)规定版权必须自创作之日起适用于任何作品,无需注册或通知。大多数(如果不是全部)用户永远不会查看元数据。将其保存在缩略图中几乎没有任何意义;只需将其剥离,即可为用户提高他们确实关心的性能。

There are no copyright regulations, in most countries, which require you to include copyright information in the metadata; the Berne Convention (an agreement that many countries, including the US, adhere to) says that copyright must apply to any work, from the moment of creation, without registration or notice being necessary. Most, if not all, of your users will never look at the metadata. There's pretty much no point in preserving it in thumbnails; just strip it off, and improve performance for your users, which they do care about.

七秒鱼° 2024-09-12 14:24:01

您应该对元数据进行分析,以找出占用所有空间的内容 - 这似乎过多。也许其中一些是嵌入的缩略图,这是多余的。

You should do an analysis of the metadata to find out what's taking all that space - it seems excessive. Perhaps some of it is an embedded thumbnail, which would be redundant.

↘人皮目录ツ 2024-09-12 14:24:01

可能大多数元数据是色彩表示(针对不同的媒体、打印等)。我在我的一个商业网站上对此进行了条纹化,它确实节省了至少 70% 的原始大小。如果您不想对处理图像进行着色,您可以安全地剥离此元数据。版权元数据的大小并不大,您可以保留它。

Probably most of the metadata is colorspce representation (for different media, printing etc). I have striped this in one of my commercial web sites and it really saves at least 70% of original size. If you do not intent to color process images you can safely strip this metadata. Copyright metadata is not that much in size and you can keep it.

枕头说它不想醒 2024-09-12 14:24:01

我能想到的唯一问题是,您可能与特定图像源签订的任何许可协议是否要求您在图像中保留元数据。但如果没有,那么当然,将其从图像中删除。

当然,这并不能免除您对图像版权的尊重,但我假设您知道这一点。

The only issue I could think of is whether any license agreement you might have with a particular image source requires that you leave metadata in the image. But if there is none, then sure, get it out of the image.

Of course, this doesn't absolve you from respecting image copyright, but I'm assuming you know that.

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