Commit 0a3e2216 authored by Tom van Bussel's avatar Tom van Bussel
Browse files

Merge branch 'fix/428-photo-thumbnail-fit' into 'master'

Make sure 'fit' variable is an int for thumbnails

Closes #428

See merge request !475
parents 9dfa50de ca1eaf34
......@@ -51,6 +51,7 @@ def generate_thumbnail(request, size_fit, path, thumbpath):
os.path.join(settings.MEDIA_ROOT, thumbpath))
full_path = os.path.normpath(os.path.join(settings.MEDIA_ROOT, path))
size, fit = size_fit.split('_')
fit = int(fit)
public_media = os.path.join(settings.MEDIA_ROOT, 'public')
thumb_root = os.path.join(settings.MEDIA_ROOT, 'thumbnails', size_fit)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment