Skip to content

Commit ea109bc

Browse files
author
Pamparampam
committed
Extended docs and showcased in basic_process.py example
1 parent dc9e0dd commit ea109bc

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

docs/api/namedtuples.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,13 @@ Thumbnail
1010
----------
1111

1212
.. autoclass:: rawpy.Thumbnail
13+
14+
Other
15+
----------
16+
17+
.. autoclass:: rawpy.Other
18+
19+
Lens
20+
----------
21+
22+
.. autoclass:: rawpy.Lens

examples/basic_process.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ def main():
3333
with rawpy.imread(TEST_IMAGE) as raw:
3434
print(f" Raw type: {raw.raw_type}")
3535
print(f" Image size: {raw.sizes.width}x{raw.sizes.height}")
36+
print(f" Image metadata: {raw.other}")
37+
print(f" Image lens metadata: {raw.lens}")
3638

3739
# Convert RAW to RGB using default parameters
3840
rgb = raw.postprocess()

0 commit comments

Comments
 (0)