2016-07-26 18:51:15 +02:00
|
|
|
--- src/modules/Covers.py.orig 2011-09-19 10:09:25 UTC
|
2014-10-07 14:25:29 +02:00
|
|
|
+++ src/modules/Covers.py
|
2016-07-26 18:51:15 +02:00
|
|
|
@@ -124,7 +124,7 @@ class Covers(modules.ThreadedModule):
|
2014-10-07 14:25:29 +02:00
|
|
|
|
|
|
|
def generateFullSizeCover(self, inFile, outFile, format):
|
|
|
|
""" Resize inFile if needed, and write it to outFile (outFile and inFile may be equal) """
|
|
|
|
- import Image
|
|
|
|
+ from PIL import Image
|
|
|
|
|
|
|
|
try:
|
|
|
|
# Open the image
|
2016-07-26 18:51:15 +02:00
|
|
|
@@ -144,7 +144,7 @@ class Covers(modules.ThreadedModule):
|
2014-10-07 14:25:29 +02:00
|
|
|
|
|
|
|
def generateThumbnail(self, inFile, outFile, format):
|
|
|
|
""" Generate a thumbnail from inFile (e.g., resize it) and write it to outFile (outFile and inFile may be equal) """
|
|
|
|
- import Image
|
|
|
|
+ from PIL import Image
|
|
|
|
|
|
|
|
try:
|
|
|
|
# Open the image
|