diff options
Diffstat (limited to 'pb/generate.py')
| -rwxr-xr-x | pb/generate.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pb/generate.py b/pb/generate.py index bfac4b2..ffa0e8e 100755 --- a/pb/generate.py +++ b/pb/generate.py @@ -11,7 +11,7 @@ DEFAULT_FINALFORMAT = "gif" DEFAULT_TAG = "im"; GRAVITY_PARAMS = ["NorthWest","North","NorthEast","West","Center","East","SouthWest","South","SouthEast"] -GRAVITY_DEFAULT = "center" +GRAVITY_DEFAULT = "Center" FORMAT_PARAMS = ["jpg", "gif", "png"] COMPOSE_PARAMS = [ "Over", "ATop", "Dst_Over", "Dst_In", "Dst_Out", "Multiply", "Screen", "Divide", "Plus", "Difference", "Exclusion", @@ -166,7 +166,7 @@ class Generate(): cmd += [ "-coalesce","+map","-interpolate","Nearest","-interpolative-resize" ] else: cmd.append("-resize") - cmd.append("{}x{}".format(self.params.get('width') or "", self.params.get('height') or "")) + cmd += [ "{}x{}".format(self.params.get('width',""), self.params.get('height',"")) ] if self.params.get('black') != "black" or self.params.get('white') != 'white': cmd += [ "+level-colors" , "{},{}".format(self.params.get('black','black'), self.params.get('white', 'white')) ] if self.params.get('contrast'): cmd += [ '-contrast-stretch', self.params['contrast'] ] |
