Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update terminal.py #113

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions amzqr/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def main():
argparser.add_argument('-bri', '--brightness', type = float, default = 1.0, help = 'A floating point value controlling the enhancement of brightness. Factor 1.0 always returns a copy of the original image, lower factors mean less color (brightness, contrast, etc), and higher values more. There are no restrictions on this value. Default: 1.0')
argparser.add_argument('-n', '--name', help = "The filename of output tailed with one of {'.jpg', '.png', '.bmp', '.gif'}. eg. exampl.png")
argparser.add_argument('-d', '--directory', default = os.getcwd(), help = 'The directory of output.')
argparser.add_argument('-m', '--mode', type = int, choices = range(1,3), default = 1, help = 'The mode means the crop/resize of the bg picture. [1 = keep ratio, 2 = center crop] Default: 1')
args = argparser.parse_args()

if args.picture and args.picture[-4:]=='.gif':
Expand All @@ -31,8 +32,9 @@ def main():
args.contrast,
args.brightness,
args.name,
args.directory
args.directory,
args.mode
)
print('Succeed! \nCheck out your', str(ver) + '-' + str(ecl), 'QR-code:', qr_name)
except:
raise
raise