except OSError:
pass
fname = os.path.join(cover_dir, "%s.%s" % (coverid, cover.ext()))
- img = cover.image().resize(PREVIEW_SIZE, PIL.Image.ANTIALIAS)
+ img = cover.image().resize(PREVIEW_SIZE, PIL.Image.Resampling.LANCZOS)
img.save(os.path.join(settings.MEDIA_ROOT, fname))
return HttpResponse(os.path.join(settings.MEDIA_URL, fname))