mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
[SNBOutput] Also convert png image to jpg.
This commit is contained in:
parent
83cf5d5f28
commit
8d26343231
@ -25,7 +25,7 @@ def ProcessFileName(fileName):
|
|||||||
fileName = fileName.lower()
|
fileName = fileName.lower()
|
||||||
# Change all images to jpg
|
# Change all images to jpg
|
||||||
root, ext = os.path.splitext(fileName)
|
root, ext = os.path.splitext(fileName)
|
||||||
if ext in [ '.jpeg', '.jpg', '.gif', '.svg' ]:
|
if ext in [ '.jpeg', '.jpg', '.gif', '.svg', '.png' ]:
|
||||||
fileName = root + '.jpg'
|
fileName = root + '.jpg'
|
||||||
return fileName
|
return fileName
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user