mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-16 21:30:23 +00:00
Merge pull request #222 from IlyaSemenov/develop
Fixed thumbnail template tag treating provided sizes as strings, not integers
This commit is contained in:
commit
09eea6edf6
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ def parse_dimensions(dimensions):
|
|||
will be None for that value.
|
||||
|
||||
"""
|
||||
width, height = [d.strip() or None for d in dimensions.split('x')]
|
||||
width, height = [d.strip() and int(d) or None for d in dimensions.split('x')]
|
||||
return dict(width=width, height=height)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue