|
|
@ -47,7 +47,7 @@ class EynollahProcessor(Processor):
|
|
|
|
dpi = exif.resolution
|
|
|
|
dpi = exif.resolution
|
|
|
|
if exif.resolutionUnit == 'cm':
|
|
|
|
if exif.resolutionUnit == 'cm':
|
|
|
|
dpi /= 2.54
|
|
|
|
dpi /= 2.54
|
|
|
|
self.parameter['dpi'] = dpi
|
|
|
|
self.parameter['dpi'] = dpi if dpi != 1 else 230
|
|
|
|
eynollah_kwargs = {
|
|
|
|
eynollah_kwargs = {
|
|
|
|
'dir_models': self.resolve_resource(self.parameter['models']),
|
|
|
|
'dir_models': self.resolve_resource(self.parameter['models']),
|
|
|
|
'allow_enhancement': self.parameter['allow_enhancement'],
|
|
|
|
'allow_enhancement': self.parameter['allow_enhancement'],
|
|
|
|