click integration works

This commit is contained in:
incandenza 2024-06-04 19:37:43 +02:00
parent 469252f5d3
commit 4c34386eb7

View file

@ -152,7 +152,9 @@ def postprocessBrightness(srcdir,centroids,framemin=0,framemax=9999999999):
sorted_items = sorted(items)
for f in sorted_items:
if f.endswith(".png"):
frame = int(f.split("_")[-1].split(".")[0])
frame = int(f.split("_")[-1].split(".")[0])@click.command(context_settings=dict(
ignore_unknown_options=True,
))
if frame >= framemin and frame < framemax:
image = Image.open(srcdir+f)
enhancer = ImageEnhance.Brightness(image)
@ -546,7 +548,6 @@ def dream(width, height, filename):
print(description)
main = click.CommandCollection(sources=[genframes])
if __name__ == "__main__":
main()
#testPillow()