Added thumbnail cropping gravity

This commit is contained in:
ville rantanen
2013-07-08 14:59:58 +03:00
parent 2a8c1e6c6c
commit d32ca41968
2 changed files with 10 additions and 4 deletions

View File

@@ -53,6 +53,8 @@ folder is the root folder of the image album (defaults to current folder).'''
help="Recurse in to subfolders")
parser.add_argument("-w",type=int,dest="width",default=850,
help="Medium image size (Default: %(default)s)")
parser.add_argument("--gravity",type=str,dest="gravity",default="Center",
help="ImageMagick gravity for cropping. (Default: %(default)s)")
parser.add_argument("startpath",type=str,action="store",default=os.path.abspath('.'),nargs='?',
help="Start path for recursion")
options=parser.parse_args()