degeist / book-cover-generator

A tool to create user-generated book covers and share on social media.
Other
2 stars 0 forks source link

Download image button fails #85

Closed erasmus closed 8 years ago

erasmus commented 8 years ago

So download no longer works, because Artboard has been replaced with None in the href URL... As below:

http://res.cloudinary.com/geist/image/upload/w_500,h_660,c_fill/l_static:danphil-headline.png,h_180,c_fit/fl_layer_apply,y_10,g_north/l_static:dp-cutout1.png,c_fit,h_500/fl_layer_apply,y_80,g_north/l_text:Open%20Sans_60_bold_center_line_spacing_-18:go%20outside,c_fit,w_480,co_white/e_shadow:10,co_black,c_fit/fl_layer_apply,g_south,y_10/q_100/None/bg1.jpg

Suspect among these lines (views.py) is the culprit to be found...

if version_id:
        artboard = get_object_or_404(Artboard, image='image/upload/%s/%s.%s' % (version_id, image_id, image_extension))
    else:
        artboard = None