- cover = WLCover(info)
- response = HttpResponse(mimetype=cover.mime_type())
- image = cover.image().resize(PREVIEW_SIZE, Image.ANTIALIAS)
- image.save(response, cover.format)
+ cover = make_cover(info)
+ response = HttpResponse(content_type=cover.mime_type())
+ img = cover.image().resize(PREVIEW_SIZE, Image.ANTIALIAS)
+ img.save(response, cover.format)