# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
#
import re
-import Image, ImageFont, ImageDraw, ImageFilter, ImageEnhance
+from PIL import Image, ImageFont, ImageDraw, ImageFilter, ImageEnhance
from StringIO import StringIO
from librarian import get_resource, OutputFile, URLOpener
super(WLCover, self).__init__(book_info, format=format, width=width, height=height)
self.kind = book_info.kind
self.epoch = book_info.epoch
- self.with_logo = with_logo
if book_info.cover_url:
url = book_info.cover_url
bg_src = None
logo_bottom = 25
logo_width = 250
format = 'PNG'
+
+class FutureOfCopyrightCover(Cover):
+ width = 420
+ height = 595
+ background_img = 'cover.png'
+ format = 'PNG'
+
+ def save(self, dest):
+ dest.write(open(self.background_img).read())