exif
This commit is contained in:
13
dzien_01/d_05_exif.py
Normal file
13
dzien_01/d_05_exif.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from exif import Image
|
||||
|
||||
def info(file_name):
|
||||
ret = f"Info: {file_name} - "
|
||||
with open(file_name, mode="rb") as file:
|
||||
img_bin = Image(file)
|
||||
dane = img_bin.get_all()
|
||||
ret += str(dane)
|
||||
return ret
|
||||
|
||||
print(
|
||||
info("images/IMG_12330.jpg")
|
||||
)
|
||||
BIN
dzien_01/images/IMG_1233.jpg
Normal file
BIN
dzien_01/images/IMG_1233.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 MiB |
Reference in New Issue
Block a user