From 819bbed855c1d45a6381676304bda2213ce88e0b Mon Sep 17 00:00:00 2001 From: Lucas MATHIEU Date: Fri, 29 Oct 2021 13:01:04 +0200 Subject: [PATCH] =?UTF-8?q?Premi=C3=A8res=20lignes=20pour=20l'=C3=A9critur?= =?UTF-8?q?e=20des=20infos=20en=20EXIF.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lucas MATHIEU --- Tools/FocaleEq.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Tools/FocaleEq.py b/Tools/FocaleEq.py index 1b02ac6..4860ba5 100644 --- a/Tools/FocaleEq.py +++ b/Tools/FocaleEq.py @@ -1,4 +1,5 @@ from math import * +from exif import Image # Fonctions @@ -99,3 +100,9 @@ focale_35mm = (sqrt(pow(24,2)+pow(36,2))) / (2*tan(champ/2)) print('\nFocale équivalente 35 mm : {} mm' '\nAngle de champ : {}°'.format(focale_35mm,degrees(champ))) + + +rep = input('\nVoulez-vous écrire ces informations en EXIF dans des images (O/N) ? ') + +if rep == 'o': + chemin_images = input('Entrez le chemin vers les images : ') \ No newline at end of file