MCPcopy
hub / github.com/ciromattia/kcc / getImageFileName

Function getImageFileName

kindlecomicconverter/shared.py:59–62  ·  view source on GitHub ↗
(imgfile)

Source from the content-addressed store, hash-verified

57
58
59def getImageFileName(imgfile):
60 name, ext = os.path.splitext(imgfile)
61 ext = ext.lower()
62 return [name, ext]
63
64def get_contain_resolution(image, size):
65 '''same code as Pillow ImageOps.contain()'''

Callers 10

mergeDirectoryFunction · 0.85
mainFunction · 0.85
buildHTMLFunction · 0.85
buildNCXFunction · 0.85
buildNAVFunction · 0.85
buildOPFFunction · 0.85
removeNonImagesFunction · 0.85
sanitizeTreeFunction · 0.85
chunk_directoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected