diff options
| author | Sadeep Madurange <sadeep@asciimx.com> | 2023-10-14 15:22:15 +0800 |
|---|---|---|
| committer | Sadeep Madurange <sadeep@asciimx.com> | 2023-10-14 15:22:15 +0800 |
| commit | 7f691c46093933b67aab466c0ca582ace8ab73d4 (patch) | |
| tree | 5fb00c47f05e568f4bbbf3e4197681d99e7056c5 /pdftoebm.py | |
| parent | 7fc10707d654aa154c28f16a06742fb5f0260b92 (diff) | |
| download | esp32-e-reader-7f691c46093933b67aab466c0ca582ace8ab73d4.tar.gz | |
Diffstat (limited to 'pdftoebm.py')
| -rw-r--r-- | pdftoebm.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pdftoebm.py b/pdftoebm.py index e03ef33..4d7d1db 100644 --- a/pdftoebm.py +++ b/pdftoebm.py @@ -43,12 +43,12 @@ for p in paths: capture_output=True, text=True ) - area = [int(x) for x in rv.stdout.split()] - if w * h < area[0] * area[1]: - w = area[0] - h = area[1] - dx = area[2] - dy = area[3] + info = [int(x) for x in rv.stdout.split()] + if w * h < info[0] * info[1]: + w = info[0] + h = info[1] + dx = info[2] + dy = info[3] crop = "{}x{}+{}+{}".format(w, h, dx, dy) print("Crop: {}".format(crop)) |
