image media_type now have their own config_spec.ini
This commit is contained in:
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