decibel-audio-player-pil.patch 898 B

1234567891011121314151617181920212223
  1. Index: decibel-audio-player-1.08/src/modules/Covers.py
  2. ===================================================================
  3. --- decibel-audio-player-1.08.orig/src/modules/Covers.py
  4. +++ decibel-audio-player-1.08/src/modules/Covers.py
  5. @@ -124,7 +124,7 @@ class Covers(modules.ThreadedModule):
  6. def generateFullSizeCover(self, inFile, outFile, format):
  7. """ Resize inFile if needed, and write it to outFile (outFile and inFile may be equal) """
  8. - import Image
  9. + from PIL import Image
  10. try:
  11. # Open the image
  12. @@ -144,7 +144,7 @@ class Covers(modules.ThreadedModule):
  13. def generateThumbnail(self, inFile, outFile, format):
  14. """ Generate a thumbnail from inFile (e.g., resize it) and write it to outFile (outFile and inFile may be equal) """
  15. - import Image
  16. + from PIL import Image
  17. try:
  18. # Open the image