Small Python Script Modification

Conor

Elite Member
Joined
Nov 7, 2012
Messages
3,621
Reaction score
6,217
Hi guys,

So I'm having a bit of trouble with a Python script. Basically, I'd like to modify this script: https://github.com/tanrax/guetzli-recursively/blob/master/guetzli-recursively.py to include the following flag when it runs the gueztli script:

Code:
--quality 90

For some reason, I just can't get it right. I tried modifying line 24 to something like this, but apparently it can't just be that simple:

Code:
                call(['guetzli', '--quality 90', url, url_out])

Any thoughts?

Edit: To give some background information, I was looking for an elegant solution to recursively run the following program through a whole folder: https://github.com/google/guetzli. The script above works amazingly, except I can't seem to modify the quality settings as I'd like.
 
Hi, I think this should work:

Code:
 call(['guetzli', '--quality', '90', url, url_out])

Quick and simple. Works great. Thanks a lot!
 
Back
Top