MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / test_delete_image

Function test_delete_image

tests/test_extractimage.py:52–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 assert png_extension == 'png'
51
52def test_delete_image():
53
54 doc = pymupdf.open(os.path.abspath(f'{__file__}/../../tests/resources/test_delete_image.pdf'))
55 page = doc[0]
56 xref = page.get_images()[0][0]
57 page.delete_image(xref)

Callers

nothing calls this directly

Calls 2

get_imagesMethod · 0.80
delete_imageMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…