diff --git a/synapse/config/repository.py b/synapse/config/repository.py index 2cb0812d7d9c931586f1ac307fd4d73f0397f72b..64644b9a7a7d3a7476c8648effb396eb639c37fa 100644 --- a/synapse/config/repository.py +++ b/synapse/config/repository.py @@ -20,6 +20,7 @@ ThumbnailRequirement = namedtuple( "ThumbnailRequirement", ["width", "height", "method", "media_type"] ) + def parse_thumbnail_requirements(thumbnail_sizes): """ Takes a list of dictionaries with "width", "height", and "method" keys and creates a map from image media types to the thumbnail size, thumnailing