summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Sorokin <me@ch1p.io>2024-06-26 15:21:26 +0300
committerEvgeny Sorokin <me@ch1p.io>2024-06-26 15:21:26 +0300
commit4e531014b50c22cfa03973e24bb06e5291d135ca (patch)
treee9fa6e6b04900c5adcbe020f0ddcbf1f5bab3f0f
parent42295b7b0ac18c4ad6a28396e04802fb22031549 (diff)
minor fixesHEADmaster
-rwxr-xr-xmain.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.py b/main.py
index 0a2662b..3bb8163 100755
--- a/main.py
+++ b/main.py
@@ -69,7 +69,7 @@ def download_and_merge_image(image_width, image_height, image_uuid, output_file)
chunk_paths.append(((x, y, width, height), chunk_path))
full_image = merge_chunks(image_width, image_height, chunk_paths)
- full_image.save(output_file)
+ full_image.save(output_file, subsampling=0, quality=99)
if __name__ == '__main__':
@@ -86,6 +86,6 @@ if __name__ == '__main__':
if args.skip_pages != 0 and page < args.skip_pages:
page += 1
continue
- download_and_merge_image(c['width'], c['height'], extract_uuid(c['@id']), os.path.join(args.output_dir, f'{page}.jpg'))
+ download_and_merge_image(c['width'], c['height'], extract_uuid(c['@id']), os.path.join(args.output_dir, f'{page+1}.jpg'))
print(f'{page} done')
page += 1