Skip to content

Commit e203bd5

Browse files
committed
readme updated
1 parent 6922635 commit e203bd5

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
JPEG structure and Exif metadata parsing library.
22

3-
## JPEG File Structure
4-
5-
![JPEG Structure](docs/jpeg_format.png)
6-
73
## Requirements
84

95
* Python >= 3.7
106
* No extra dependencies
7+
## JPEG File Structure
8+
9+
10+
![JPEG Structure](docs/jpeg_format.png)
1111

1212
## Examples
1313

14-
### Read TAG value
14+
### Reading TAG value
1515

1616
```python
1717
from jparse import JpegMetaParser, TagPath
@@ -29,13 +29,13 @@ print(f'Image Width: {image_width}')
2929
print(f'DateTime: {date_time}')
3030
```
3131

32-
output:
32+
Output:
3333
```
3434
Image Width: 4096
3535
DateTime: 2021:03:29 21:27:04
3636
```
3737

38-
### Enumerate IFD's fields
38+
### Enumerating IFD's fields
3939

4040
```python
4141
from jparse import JpegMetaParser
@@ -50,7 +50,7 @@ with open('image.jpg', 'rb') as f:
5050
print(f'TAG 0x{tag_id:04X}: {field.value}')
5151
```
5252

53-
output:
53+
Output:
5454
```
5555
TAG 0x0100: 512
5656
TAG 0x0101: 384
@@ -76,7 +76,7 @@ logging.basicConfig(format='[%(name)s][%(levelname)s]: %(message)s', level=loggi
7676
with open('image.jpg', 'rb') as f:
7777
parser = JpegMetaParser(f)
7878
```
79-
output:
79+
Output:
8080
```
8181
[jparse][DEBUG]: 0x00000000 -> SOI : 2 bytes
8282
[jparse][DEBUG]: 0x00000002 -> APP1 : 30251 bytes
@@ -113,7 +113,7 @@ with open('image.jpg', 'rb') as f:
113113
app1.load()
114114
```
115115

116-
output:
116+
Output:
117117
```
118118
[jparse][DEBUG]: 0x00000000 -> SOI : 2 bytes
119119
[jparse][DEBUG]: 0x00000002 -> APP1 : 30251 bytes

0 commit comments

Comments
 (0)