CARVIEW |
Select Language
HTTP/2 200
date: Sat, 26 Jul 2025 08:02:53 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/opencv/opencv.git
etag: W/"7b9745a881aed8ba7267c1c80b6e0b45"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=1lJlxjcr9%2BtoOTozybt8b3rFy8nK0TQ4TXKBe4H7cO1yLP%2FXTYE8pv1M34LXuAnANcp4Sbg%2BBeGLoUw7peljfRpe05WG%2BXRczy1Jwq5rpzSDin7DZPc8YMQC5fPY9saN5RqpXaNB9QXHof%2BHJTRVjc9%2FBmpse7YUcsgWhngZxwMfkn6BE%2BhvRYeGJSlUixfJw6K0ElS0bOt2JuarUyy%2BXn2kuYo6DPgfcJr77wJHaxDBQmZ0E2QuX4PEm%2FzdeORncOG%2BkNXjq%2FSam55Cp2xJmg%3D%3D--kMJDIN3h%2By7TgdOX--wXcX%2FnpkCiXkR5zewehtTg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1469885797.1753516973; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 08:02:53 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 08:02:53 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 84AE:1E56AF:316D6D:4321F4:68848BAC
Merge pull request #27499 from vpisarev:image_io_with_metadata · opencv/opencv@66e5fce · GitHub
Copy file name to clipboardExpand all lines: modules/imgcodecs/include/opencv2/imgcodecs.hpp
Copy file name to clipboardExpand all lines: modules/imgcodecs/src/exif.cpp
Copy file name to clipboardExpand all lines: modules/imgcodecs/src/exif.hpp
Copy file name to clipboardExpand all lines: modules/imgcodecs/src/grfmt_avif.cpp
Copy file name to clipboardExpand all lines: modules/imgcodecs/src/grfmt_base.cpp
Copy file name to clipboardExpand all lines: modules/imgcodecs/src/grfmt_base.hpp
Copy file name to clipboardExpand all lines: modules/imgcodecs/src/grfmt_jpeg.cpp
Copy file name to clipboardExpand all lines: modules/imgcodecs/src/grfmt_png.cpp
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 56.2k
Commit 66e5fce
authored
Merge pull request #27499 from vpisarev:image_io_with_metadata
Extend image I/O API with metadata support #27499
Covered with the PR:
* AVIF encoder can write exif, xmp, icc
* AVIF decoder can read exif
* JPEG encoder can write exif
* JPEG decoder can read exif
* PNG encoder can write exif
* PNG decoder can read exif
This PR is a sort of preamble for #27488. I suggest to merge this one first to OpenCV 4.x, then promote this change to OpenCV 5.x and then provide extra API to read and write metadata in 5.x (or maybe 4.x) in a style similar to #27488. Maybe in that PR exif packing/unpacking should be done using a separate external API. That is, metadata reading and writing can/should be done in 2 steps:
* [1] pack and then [2] embed exif into image at the encoding stage.
* [1] extract and then [2] unpack exif at the decoding stage.
### Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [x] There is a reference to the original bug report and related work
- [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
Patch to opencv_extra has the same branch name.
- [ ] The feature is well documented and sample code can be built with the project CMake1 parent 677c4ee commit 66e5fceCopy full SHA for 66e5fce
File tree
Expand file treeCollapse file tree
11 files changed
+589
-14
lines changedFilter options
- modules
- imgcodecs
- include/opencv2
- src
- test
- python/test
Expand file treeCollapse file tree
11 files changed
+589
-14
lines changedmodules/imgcodecs/include/opencv2/imgcodecs.hpp
Copy file name to clipboardExpand all lines: modules/imgcodecs/include/opencv2/imgcodecs.hpp+68Lines changed: 68 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
251 | 251 |
| |
252 | 252 |
| |
253 | 253 |
| |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
254 | 263 |
| |
255 | 264 |
| |
256 | 265 |
| |
| |||
360 | 369 |
| |
361 | 370 |
| |
362 | 371 |
| |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
363 | 383 |
| |
364 | 384 |
| |
365 | 385 |
| |
| |||
508 | 528 |
| |
509 | 529 |
| |
510 | 530 |
| |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
511 | 545 |
| |
512 | 546 |
| |
513 | 547 |
| |
| |||
529 | 563 |
| |
530 | 564 |
| |
531 | 565 |
| |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
532 | 582 |
| |
533 | 583 |
| |
534 | 584 |
| |
| |||
567 | 617 |
| |
568 | 618 |
| |
569 | 619 |
| |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
570 | 638 |
| |
571 | 639 |
| |
572 | 640 |
| |
|
modules/imgcodecs/src/exif.cpp
Copy file name to clipboardExpand all lines: modules/imgcodecs/src/exif.cpp+4Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
94 | 94 |
| |
95 | 95 |
| |
96 | 96 |
| |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
97 | 101 |
| |
98 | 102 |
| |
99 | 103 |
| |
|
modules/imgcodecs/src/exif.hpp
Copy file name to clipboardExpand all lines: modules/imgcodecs/src/exif.hpp+4Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
175 | 175 |
| |
176 | 176 |
| |
177 | 177 |
| |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
178 | 182 |
| |
179 | 183 |
| |
180 | 184 |
| |
|
modules/imgcodecs/src/grfmt_avif.cpp
Copy file name to clipboardExpand all lines: modules/imgcodecs/src/grfmt_avif.cpp+20-4Lines changed: 20 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
71 |
| - | |
72 |
| - | |
| 71 | + | |
| 72 | + | |
73 | 73 |
| |
74 | 74 |
| |
75 | 75 |
| |
| |||
112 | 112 |
| |
113 | 113 |
| |
114 | 114 |
| |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
115 | 127 |
| |
116 | 128 |
| |
117 | 129 |
| |
| |||
120 | 132 |
| |
121 | 133 |
| |
122 | 134 |
| |
123 |
| - | |
| 135 | + | |
124 | 136 |
| |
125 | 137 |
| |
126 | 138 |
| |
| |||
287 | 299 |
| |
288 | 300 |
| |
289 | 301 |
| |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
290 | 306 |
| |
291 | 307 |
| |
292 | 308 |
| |
| |||
349 | 365 |
| |
350 | 366 |
| |
351 | 367 |
| |
352 |
| - | |
| 368 | + | |
353 | 369 |
| |
354 | 370 |
| |
355 | 371 |
| |
|
modules/imgcodecs/src/grfmt_base.cpp
Copy file name to clipboardExpand all lines: modules/imgcodecs/src/grfmt_base.cpp+36Lines changed: 36 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
61 | 79 |
| |
62 | 80 |
| |
63 | 81 |
| |
64 | 82 |
| |
65 | 83 |
| |
| 84 | + | |
66 | 85 |
| |
67 | 86 |
| |
68 | 87 |
| |
| |||
140 | 159 |
| |
141 | 160 |
| |
142 | 161 |
| |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
143 | 179 |
| |
144 | 180 |
| |
145 | 181 |
| |
|
modules/imgcodecs/src/grfmt_base.hpp
Copy file name to clipboardExpand all lines: modules/imgcodecs/src/grfmt_base.hpp+23Lines changed: 23 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
69 | 69 |
| |
70 | 70 |
| |
71 | 71 |
| |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
72 | 86 |
| |
73 | 87 |
| |
74 | 88 |
| |
| |||
205 | 219 |
| |
206 | 220 |
| |
207 | 221 |
| |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
208 | 229 |
| |
209 | 230 |
| |
210 | 231 |
| |
| |||
243 | 264 |
| |
244 | 265 |
| |
245 | 266 |
| |
| 267 | + | |
| 268 | + | |
246 | 269 |
| |
247 | 270 |
| |
248 | 271 |
| |
|
modules/imgcodecs/src/grfmt_jpeg.cpp
Copy file name to clipboardExpand all lines: modules/imgcodecs/src/grfmt_jpeg.cpp+18Lines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
600 | 600 |
| |
601 | 601 |
| |
602 | 602 |
| |
| 603 | + | |
| 604 | + | |
603 | 605 |
| |
604 | 606 |
| |
605 | 607 |
| |
| |||
815 | 817 |
| |
816 | 818 |
| |
817 | 819 |
| |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
818 | 836 |
| |
819 | 837 |
| |
820 | 838 |
| |
|
modules/imgcodecs/src/grfmt_png.cpp
Copy file name to clipboardExpand all lines: modules/imgcodecs/src/grfmt_png.cpp+12Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
858 | 858 |
| |
859 | 859 |
| |
860 | 860 |
| |
| 861 | + | |
| 862 | + | |
861 | 863 |
| |
862 | 864 |
| |
863 | 865 |
| |
| |||
989 | 991 |
| |
990 | 992 |
| |
991 | 993 |
| |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
992 | 1004 |
| |
993 | 1005 |
| |
994 | 1006 |
| |
|
You can’t perform that action at this time.
0 commit comments