exif
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
from exif import Image
|
from exif import Image
|
||||||
|
|
||||||
|
print(f"Przestrzeń 1: {__name__}")
|
||||||
|
|
||||||
# otwarcie pliku
|
# otwarcie pliku
|
||||||
def fn_file(file_name):
|
def fn_file(file_name):
|
||||||
try:
|
try:
|
||||||
@@ -31,12 +34,13 @@ def get_exif(image):
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
print(fn_file("images/IMG_123311x.jpg"))
|
if __name__ == "__main__":
|
||||||
|
print(fn_file("images/IMG_123311x.jpg"))
|
||||||
|
|
||||||
ok = fn_file("IMG_1233.jpg")
|
ok = fn_file("IMG_1233.jpg")
|
||||||
if ok:
|
if ok:
|
||||||
if file_ok(ok):
|
if file_ok(ok):
|
||||||
print(get_exif(ok))
|
print(get_exif(ok))
|
||||||
|
|
||||||
print(fn_file("to-do.md"))
|
print(fn_file("to-do.md"))
|
||||||
|
|
||||||
|
|||||||
24
dzien_02/d_06_import.py
Normal file
24
dzien_02/d_06_import.py
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
from d_05_exif import *
|
||||||
|
import os
|
||||||
|
print(f"Przestrzeń 2: {__name__}")
|
||||||
|
|
||||||
|
print('zaimportowano')
|
||||||
|
directory = "testy_os"
|
||||||
|
|
||||||
|
for dirpath, dirname, files in os.walk(directory):
|
||||||
|
print(dirpath)
|
||||||
|
print(dirname)
|
||||||
|
print(files)
|
||||||
|
print('------------')
|
||||||
|
if files:
|
||||||
|
for every_file in files:
|
||||||
|
file_name = os.path.join(dirpath, every_file)
|
||||||
|
print(file_name)
|
||||||
|
ok = fn_file(file_name)
|
||||||
|
if ok:
|
||||||
|
if file_ok(ok):
|
||||||
|
print(get_exif(ok))
|
||||||
|
|
||||||
|
|
||||||
|
# for ind, val in enumerate([2,33,34,33,5,4]):
|
||||||
|
# print(f"element nr {ind}: {val}")
|
||||||
4
dzien_02/d_07_import.py
Normal file
4
dzien_02/d_07_import.py
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
from d_06_import import *
|
||||||
|
print(f"Przestrzeń 3: {__name__}")
|
||||||
|
|
||||||
|
print('zaimportowano w 3')
|
||||||
BIN
dzien_02/testy_os/a/IMG_20260311_091149.jpg
Normal file
BIN
dzien_02/testy_os/a/IMG_20260311_091149.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 930 KiB |
BIN
dzien_02/testy_os/b/IMG_20251020_075412.jpg
Normal file
BIN
dzien_02/testy_os/b/IMG_20251020_075412.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 728 KiB |
BIN
dzien_02/testy_os/b/IMG_20251021_112201.jpg
Normal file
BIN
dzien_02/testy_os/b/IMG_20251021_112201.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 MiB |
BIN
dzien_02/testy_os/b/Zrzut ekranu_20251022_091213.png
Normal file
BIN
dzien_02/testy_os/b/Zrzut ekranu_20251022_091213.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 205 KiB |
BIN
dzien_02/testy_os/c/Zrzut ekranu_20250921_084910.png
Normal file
BIN
dzien_02/testy_os/c/Zrzut ekranu_20250921_084910.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 685 KiB |
BIN
dzien_02/testy_os/c/Zrzut ekranu_20250921_114735.png
Normal file
BIN
dzien_02/testy_os/c/Zrzut ekranu_20250921_114735.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 610 KiB |
Reference in New Issue
Block a user