click integration works
This commit is contained in:
parent
469252f5d3
commit
4c34386eb7
1 changed files with 3 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue