| xqd
@@ -30,9 +30,9 @@ def compress_file(item, width):
|
|
|
|
|
|
basename = os.path.basename(item)
|
|
|
fileName, fileSuffix = os.path.splitext(basename)
|
|
|
- if fileSuffix != '.png' and fileSuffix != '.jpg' and fileSuffix == '.jpeg':
|
|
|
- print "不支持该文件类型! file = %s" % item
|
|
|
- return
|
|
|
+ #if fileSuffix != '.png' and fileSuffix != '.jpg' and fileSuffix == '.jpeg':
|
|
|
+ # print "不支持该文件类型! file = %s" % item
|
|
|
+ # return
|
|
|
|
|
|
try:
|
|
|
img = Image.open(item)
|