mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-06-09 20:29:55 +02:00
resolving error caused by dpi of image on windows [temporary]
This commit is contained in:
parent
c7d509bb2c
commit
37431d4840
1 changed files with 5 additions and 1 deletions
|
@ -295,7 +295,11 @@ class eynollah:
|
|||
|
||||
def check_dpi(self):
|
||||
dpi = os.popen('identify -format "%x " ' + self.image_dir).read()
|
||||
return int(float(dpi))
|
||||
try:
|
||||
int_dpi = int(float(dpi))
|
||||
except:
|
||||
int_dpi = 300
|
||||
return int_dpi
|
||||
|
||||
def resize_image_with_column_classifier(self, is_image_enhanced):
|
||||
dpi = self.check_dpi()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue