[ocrfeeder: 2/3] Fix arguments for ghostscript invocation




commit afea0e722f1d14eaf14bf0e5ebb444d3271ff1ef
Author: RenWal <65450-RenWal users noreply gitlab gnome org>
Date:   Sun Mar 13 12:35:08 2022 +0100

    Fix arguments for ghostscript invocation

 src/ocrfeeder/util/lib.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/ocrfeeder/util/lib.py b/src/ocrfeeder/util/lib.py
index ce61de6..cd4ab95 100644
--- a/src/ocrfeeder/util/lib.py
+++ b/src/ocrfeeder/util/lib.py
@@ -78,7 +78,7 @@ def runGhostscript(dir_name, base_name, pdf_path, format = 'jpeg', resolution =
     command = [
         'gs',
         f'-SDEVICE={format}',
-        f'-r{resolution}x{resolution}s',
+        f'-r{resolution}x{resolution}',
         f'-sPAPERSIZE={size}',
         f'-sOutputFile={dir_name}/{base_name}_%04d.jpg',
         '-dNOPAUSE',


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]