image media_type now have their own config_spec.ini
This commit is contained in:
@@ -104,12 +104,6 @@ max_height = integer(default=640)
|
||||
max_width = integer(default=180)
|
||||
max_height = integer(default=180)
|
||||
|
||||
[media_type:mediagoblin.media_types.image]
|
||||
# One of BICUBIC, BILINEAR, NEAREST, ANTIALIAS
|
||||
resize_filter = string(default="ANTIALIAS")
|
||||
#level of compression used when resizing images
|
||||
quality = integer(default=90)
|
||||
|
||||
[media_type:mediagoblin.media_types.video]
|
||||
# Should we keep the original file?
|
||||
keep_original = boolean(default=False)
|
||||
|
||||
7
mediagoblin/media_types/image/config_spec.ini
Normal file
7
mediagoblin/media_types/image/config_spec.ini
Normal file
@@ -0,0 +1,7 @@
|
||||
[plugin_spec]
|
||||
# One of BICUBIC, BILINEAR, NEAREST, ANTIALIAS
|
||||
resize_filter = string(default="ANTIALIAS")
|
||||
#level of compression used when resizing images
|
||||
quality = integer(default=90)
|
||||
|
||||
|
||||
@@ -138,8 +138,8 @@ class CommonImageProcessor(MediaProcessor):
|
||||
"""
|
||||
Set up the workbench directory and pull down the original file
|
||||
"""
|
||||
self.image_config = mgg.global_config[
|
||||
'media_type:mediagoblin.media_types.image']
|
||||
self.image_config = mgg.global_config['plugins'][
|
||||
'mediagoblin.media_types.image']
|
||||
|
||||
## @@: Should this be two functions?
|
||||
# Conversions subdirectory to avoid collisions
|
||||
|
||||
Reference in New Issue
Block a user