Marking the initial steps for processing
This commit is contained in:
parent
55cfa34063
commit
2fa7b7f81a
@ -325,6 +325,18 @@ class CommonImageProcessor(MediaProcessor):
|
|||||||
help=(
|
help=(
|
||||||
"Height of the resized image (if not using defaults)"))
|
"Height of the resized image (if not using defaults)"))
|
||||||
|
|
||||||
|
def fetch_original(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def generate_medium_if_applicable(self, size=None):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def generate_thumb(self, size=None):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def extract_metadata(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class InitialProcessor(CommonImageProcessor):
|
class InitialProcessor(CommonImageProcessor):
|
||||||
"""
|
"""
|
||||||
@ -361,6 +373,12 @@ class InitialProcessor(CommonImageProcessor):
|
|||||||
args, ['width', 'height'])
|
args, ['width', 'height'])
|
||||||
|
|
||||||
|
|
||||||
|
def process(self, size=None, thumb_size=None):
|
||||||
|
self.fetch_original()
|
||||||
|
self.generate_medium_if_applicable(size=size)
|
||||||
|
self.generate_thumb(size=thumb_size)
|
||||||
|
self.extract_metadata()
|
||||||
|
|
||||||
|
|
||||||
class ImageProcessingManager(ProcessingManager):
|
class ImageProcessingManager(ProcessingManager):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user