Formatting fixes
This commit is contained in:
parent
78a01e432e
commit
d2ee9d24ac
3 changed files with 6 additions and 8 deletions
|
@ -17,10 +17,8 @@ class ScriptPostprocessingColorEnhance(scripts_postprocessing.ScriptPostprocessi
|
|||
def process(self, pp: scripts_postprocessing.PostprocessedImage, strength):
|
||||
if strength == 0:
|
||||
return
|
||||
|
||||
|
||||
info_bak = {} if not hasattr(pp.image, "info") else pp.image.info
|
||||
pp.image = lib.color_enhance(pp.image, strength)
|
||||
pp.image.info = info_bak
|
||||
pp.info["Color Enhance"] = strength
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue