MCPcopy Index your code
hub / github.com/pymupdf/PyMuPDF / test_save

Function test_save

tests/test_pixmap.py:77–85  ·  view source on GitHub ↗
(tmpdir)

Source from the content-addressed store, hash-verified

75
76
77def test_save(tmpdir):
78 # pixmaps from file then save to image
79 # make pixmap from this and confirm equality
80 pix1 = pymupdf.Pixmap(imgfile)
81 outfile = os.path.join(tmpdir, "foo.png")
82 pix1.save(outfile, output="png")
83 # read it back
84 pix2 = pymupdf.Pixmap(outfile)
85 assert repr(pix1) == repr(pix2)
86
87
88def test_setalpha():

Callers

nothing calls this directly

Calls 1

saveMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…