diff --git a/sorl/thumbnail/parsers.py b/sorl/thumbnail/parsers.py index 89538d0d4..db38713ea 100644 --- a/sorl/thumbnail/parsers.py +++ b/sorl/thumbnail/parsers.py @@ -7,7 +7,7 @@ bgpos_pat = re.compile(r'^(?P\d+)(?P%|px)$') -geometry_pat = re.compile(r'^(?P\d+)?(?:x(?P\d+))?$') +geometry_pat = re.compile(r'^(?P[\d]+)?(?:x)(?P\d+)?$') class ThumbnailParseError(ThumbnailError):