Updates
[redakcja.git] / src / cover / views.py
index 302f5f5..3862ee3 100644 (file)
@@ -98,7 +98,7 @@ def preview_from_xml(request):
     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))