Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Also output the URL of the original exercise image file

Roland Geider4a5f243853c0
diff --git a/wger/exercises/api/views.py b/wger/exercises/api/views.py
index 2f3788fed..b06bd2242 100644
--- a/wger/exercises/api/views.py
+++ b/wger/exercises/api/views.py
@@ -74,6 +74,7 @@ class ExerciseImageViewSet(viewsets.ModelViewSet):
t = get_thumbnailer(image.image)
thumbnails[alias] = {'url': t.get_thumbnail(aliases.get(alias)).url,
'settings': aliases.get(alias)}
+ thumbnails['original'] = image.image.url
return Response(thumbnails)
def pre_save(self, obj):