freebsd-ports/audio/decibel-audio-player/files/patch-src_modules_Covers.py
Mathieu Arnold 9fa9eb9ac7 Cleanup patches, a* categories.
Rename them to follow the make makepatch naming, and regenerate them.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-26 16:51:15 +00:00

20 lines
747 B
Python

--- src/modules/Covers.py.orig 2011-09-19 10:09:25 UTC
+++ src/modules/Covers.py
@@ -124,7 +124,7 @@ class Covers(modules.ThreadedModule):
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
@@ -144,7 +144,7 @@ class Covers(modules.ThreadedModule):
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