File tree Expand file tree Collapse file tree 3 files changed +5
-21
lines changed
Expand file tree Collapse file tree 3 files changed +5
-21
lines changed Original file line number Diff line number Diff line change 3434import os
3535import uuid
3636import json
37- try :
38- import subprocess
39- except :
40- pass
4137
4238# Import python module
4339CHECK_MODULE = ''
4642
4743 CHECK_MODULE = 'exifread'
4844except :
49- try :
50- subprocess .call (['pip' , 'install' , 'exifread' ])
51- CHECK_MODULE = ''
52- except ModuleNotFoundError :
53- pass
45+ CHECK_MODULE = ''
46+
5447try :
5548 if CHECK_MODULE == '' :
5649 from PIL import Image
5750 from PIL .ExifTags import TAGS
5851 CHECK_MODULE = 'PIL'
5952except :
60- try :
61- subprocess .call (['pip' , 'install' , 'pillow' ])
62- CHECK_MODULE = ''
63- except ModuleNotFoundError :
64- pass
53+ CHECK_MODULE = ''
6554
6655FORM_CLASS , _ = uic .loadUiType (os .path .join (
6756 os .path .dirname (__file__ ), 'ui/impphotos.ui' ))
Original file line number Diff line number Diff line change 3535 opencv = True
3636except :
3737 opencv = False
38- try :
39- subprocess .call (['pip' , 'install' , 'opencv-python' ])
40- opencv = True
41- except ModuleNotFoundError :
42- pass
4338
4439
4540class PhotosViewer (QGraphicsView ):
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ repository=https://github.com/KIOS-Research/ImportPhotos/
2424# Recommended items:
2525# Uncomment the following line and add your changelog:
2626changelog=2023-01-04 ImportPhotos 3.0.5:
27- Automatically install some modules (exifread, pillow, opencv-python)
28- Add label space in the window of the photo
27+ Show the photo in the tooltip window
28+ Add label space in the window of the photo (show the title/name of the file more clearly)
2929 Fix some issues with empty fields (Thanks @gaspermeister)
3030 Fix python type error on photos viewer setGeometry (Thanks @faebebin)
3131 Fix the error if the file in the Path field doesn't exist (Thanks @KrisRadowski, @turzik-x)
You can’t perform that action at this time.
0 commit comments