-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address #3087, fix Page.insert_image() with mask specified.
src/__init__.py: Page._insert_image(): avoid problems caused by mupdf.fz_new_image_from_compressed_buffer() being unusable from Python, due to decode and colorkey args being incorrectly treated as out-params. Also avoid double free of fz_compressed_buffer due to not being ref-counted, but used by two images. The fix follows classic, and probably results in a small memory leak. src/extra.i: Added fz_new_image_from_compressed_buffer(), wrapper for mupdf::fz_new_image_from_compressed_buffer(), without problematic decode and colorkey args. tests/test_insertimage.py: Added test_3087(). tests/resources/test_3087.pdf: New, for use by test_3087().
- Loading branch information
1 parent
803dd0b
commit 892fe31
Showing
4 changed files
with
121 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters