pep8 prosopopee.py
This commit is contained in:
parent
fc82ddc1ab
commit
bec58371d6
@ -33,6 +33,7 @@ SETTINGS = {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class Video(object):
|
||||
base_dir = ""
|
||||
target_dir = ""
|
||||
@ -41,7 +42,8 @@ class Video(object):
|
||||
# assuming string
|
||||
if not isinstance(options, dict):
|
||||
options = {"video": options}
|
||||
self.options = SETTINGS["ffmpeg"].copy() # used for caching, if it's modified -> regenerate
|
||||
# used for caching, if it's modified -> regenerate
|
||||
self.options = SETTINGS["ffmpeg"].copy()
|
||||
self.options.update(options)
|
||||
|
||||
@property
|
||||
@ -113,7 +115,7 @@ class Image(object):
|
||||
gm_switches = {
|
||||
"source": source,
|
||||
"target": target,
|
||||
"auto-orient" : "-auto-orient" if options["auto-orient"] else "",
|
||||
"auto-orient": "-auto-orient" if options["auto-orient"] else "",
|
||||
"strip": "-strip" if options["strip"] else "",
|
||||
"quality": "-quality %s" % options["quality"] if "quality" in options else "-define jpeg:preserve-settings",
|
||||
"resize": "-resize %s" % options["resize"] if options.get("resize", None) is not None else ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user