惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
Recent Announcements
Recent Announcements
雷峰网
雷峰网
The GitHub Blog
The GitHub Blog
罗磊的独立博客
月光博客
月光博客
J
Java Code Geeks
A
About on SuperTechFans
Microsoft Security Blog
Microsoft Security Blog
D
Docker
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
F
Fortinet All Blogs
U
Unit 42
C
Check Point Blog
Martin Fowler
Martin Fowler
有赞技术团队
有赞技术团队
博客园 - 叶小钗
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
酷 壳 – CoolShell
酷 壳 – CoolShell
Blog — PlanetScale
Blog — PlanetScale
大猫的无限游戏
大猫的无限游戏
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
阮一峰的网络日志
阮一峰的网络日志
MyScale Blog
MyScale Blog

ImageKit.io Blog

Next.js Image Optimization with ImageKit Use Video as a Background in Your Next.js Project How to Fix Autoplay Video in Next.js How Durian Scaled a Visual-First Retail Experience to 350K Monthly Visitors Online How Matsmart accelerated image delivery across countries with ImageKit AI in Digital Asset Management: From Smart Workflows to Agentic Automation How Joseph Joseph unified and secured global video delivery with ImageKit How Modall powers fast, effortless media delivery across 40+ projects with ImageKit Digital Asset Management (DAM) Trends: 2026 Report How to add a poster image to Video.js player (and automate it) HLS streaming with Video.js + React Building the future of storytelling with fast, AI-powered video delivery How PushOwl delivers 100M+ image-rich notifications seamlessly with ImageKit How Homify delivers millions of interior design images seamlessly with ImageKit Better event discovery with lightning‑fast videos & images Adding video player in React Native Video player in Angular applications Crop and resize videos in React Next.js image and video upload React image and video upload React video optimization How we quadrupled our traffic to 625K monthly page views How Apollo 24|7 boosted performance & reduced costs with ImageKit Simplify your media workflows with ImageKit DAM integrations Extending Lighthouse for custom image and video optimization analysis Brand Asset Management: What is it? How does it work? WordPress Digital Asset Management Guide - Manage your WP media assets better Why Shopify retailers need a digital asset management solution DAM vs. SharePoint: Which is best for you? AI-powered Metadata and Tagging in Digital Asset Management
Image metadata and color profiles
Manu Chaudhary · 2017-05-24 · via ImageKit.io Blog

In this post, we will look at the available options around image metadata and color profiles and how they can be utilized to obtain different levels of optimizations. This is just a quick guide about metadata related URL parameters. You can get a more detailed explanation on how metadata impacts image optimization in this article.

URL Transformation - Yes

Image Metadata (md) - true / false
Image Color Profile - (cp) - true / false

Dashboard Settings - Yes

Settings > Image optimization setting > Image metadata

  • Preserve only color profile is equal to using cp-true in the URL
  • Preserve complete metadata is equal to using md-true in the URL
  • Discard all metadata is equal to using md-false in the URL

Examples

1. Original Image

Notice the bright red petals and the bright green center of the flower. Image size is 262KB.

https://ik.imagekit.io/demo/img/tr:md-false,f-jpg,q-100/demo_photo.jpeg
https://ik.imagekit.io/demo/img/tr:md-false,f-jpg,q-100/demo_photo.jpeg

2. Metadata Removed

Notice that, as compared to the original image, the red petals and the green center look a lot more saturated (or dull) in this image because the associated metadata and the color profile get removed. Image size is 59.2KB.

https://ik.imagekit.io/demo/img/tr:md-false,f-jpg/demo_photo.jpeg
https://ik.imagekit.io/demo/img/tr:md-false,f-jpg/demo_photo.jpeg

3. Full metadata preserved and image optimized

The entire metadata is preserved in this image and the image is optimized as well. The image size is 61.2KB which is larger than the image with metadata removed.

Note that the metadata can be much larger than the 2KB data in this case and thus removing it not only homogenises the image across displays, it also saves on crucial bandwidth.

https://ik.imagekit.io/demo/img/tr:md-true/demo_photo.jpeg
https://ik.imagekit.io/demo/img/tr:md-true/demo_photo.jpeg

4. Only color profile preserved and image optimized

Instead of preserving all the metadata like camera information, copyright, lens information etc, we preserve only the most important display related information related to the image - the color profile

This image will always be smaller or equal to image with metadata preserved. It is a very common choice for e-commerce companies who want rich-looking colored images on their websites.

https://ik.imagekit.io/demo/img/tr:cp-true/demo_photo.jpeg
https://ik.imagekit.io/demo/img/tr:cp-true/demo_photo.jpeg

You can refer to the detailed documentation here to get more options for image metadata (md) and color profile (cp).