MCPcopy Index your code
hub / github.com/geekcomputers/Python / save

Method save

image2pdf/image2pdf.py:112–123  ·  view source on GitHub ↗
(self, image=None, title="All-PDFs", isMergeAll=True)

Source from the content-addressed store, hash-verified

110 print(f"{'#' * 30}\n")
111
112 def save(self, image=None, title="All-PDFs", isMergeAll=True):
113 # Save all to one pdf or each in seperate file
114
115 if isMergeAll:
116 self.pictures[0].save(
117 f"{self.directory}\\{title}.pdf",
118 save_all=True,
119 append_images=self.pictures[1:],
120 )
121
122 else:
123 image.save(f"{self.directory}\\{title}.pdf")
124
125
126if __name__ == "__main__":

Callers 15

convertPicturesMethod · 0.95
mainFunction · 0.45
qrcode.pyFile · 0.45
compress_imageFunction · 0.45
voice.pyFile · 0.45
main.pyFile · 0.45
save_imageMethod · 0.45
indexFunction · 0.45
voiceFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected