include a thumb_size string with each Resizer to run gmg reprocess thumbs

This commit is contained in:
Rodney Ewing 2013-08-14 16:25:44 -07:00
parent 63021eb609
commit 3225008f04
7 changed files with 10 additions and 2 deletions

View File

@ -245,8 +245,10 @@ def thumbs(args):
# prepare filetype and size to be passed into reprocess_parser
if args.size:
extra_args = 'thumb --size {0} {1}'.format(args.size[0],
args.size[1])
extra_args = 'thumb --{0} {1} {2}'.format(
processor_class.thumb_size,
args.size[0],
args.size[1])
else:
extra_args = 'thumb'

View File

@ -198,6 +198,7 @@ class Resizer(CommonAsciiProcessor):
"""
name = 'resize'
description = 'Resize thumbnail'
thumb_size = 'thumb_size'
@classmethod
def media_is_eligible(cls, entry=None, state=None):

View File

@ -232,6 +232,7 @@ class Resizer(CommonAudioProcessor):
"""
name = 'resize'
description = 'Resize thumbnail or spectogram'
thumb_size = 'thumb_size'
@classmethod
def media_is_eligible(cls, entry=None, state=None):

View File

@ -267,6 +267,7 @@ class Resizer(CommonImageProcessor):
"""
name = 'resize'
description = 'Resize image'
thumb_size = 'size'
@classmethod
def media_is_eligible(cls, entry=None, state=None):

View File

@ -389,6 +389,7 @@ class Resizer(CommonPdfProcessor):
"""
name = 'resize'
description = 'Resize thumbnail and medium'
thumb_size = 'size'
@classmethod
def media_is_eligible(cls, entry=None, state=None):

View File

@ -279,6 +279,7 @@ class Resizer(CommonStlProcessor):
"""
name = 'resize'
description = 'Resize thumbnail and mediums'
thumb_size = 'size'
@classmethod
def media_is_eligible(cls, entry=None, state=None):

View File

@ -290,6 +290,7 @@ class Resizer(CommonVideoProcessor):
"""
name = 'resize'
description = 'Resize thumbnail'
thumb_size = 'thumb_size'
@classmethod
def media_is_eligible(cls, entry=None, state=None):