lsexif script and jpeg orientation test images

This commit is contained in:
Fabien LOISON 2021-06-29 15:01:26 +02:00
parent fb84b142ee
commit 1cced86b5a
No known key found for this signature in database
GPG Key ID: FF90CA148348048E
10 changed files with 27 additions and 0 deletions

27
scripts/lsexif.py Executable file
View File

@ -0,0 +1,27 @@
#!/usr/bin/env python
import sys
from PIL import Image
from PIL.ExifTags import TAGS
def print_exif(input_path):
image = Image.open(input_path)
exif = image.getexif()
print("+-- %s" % input_path)
for key, value in exif.items():
print(" +-- [%i] %s: %s" % (key, TAGS[key], value))
if __name__ == "__main__":
if len(sys.argv) < 2:
print("USAGE:")
print(
" ./scripts/lsexif.py <image.jpg> [image2.jpg ...]"
)
sys.exit(1)
for input_path in sys.argv[1:]:
print_exif(input_path)

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB