mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-05-08 01:43:42 +03:00
Fix #2804 : sets encoderinfo for images when saving multi-page PDF
This commit is contained in:
parent
0efc194e1e
commit
5dfe5f0fa6
|
@ -80,6 +80,13 @@ class TestFilePdf(PillowTestCase):
|
||||||
self.assertTrue(os.path.isfile(outfile))
|
self.assertTrue(os.path.isfile(outfile))
|
||||||
self.assertGreater(os.path.getsize(outfile), 0)
|
self.assertGreater(os.path.getsize(outfile), 0)
|
||||||
|
|
||||||
|
# Append JPEG images
|
||||||
|
jpeg = Image.open("Tests/images/flower.jpg")
|
||||||
|
jpeg.save(outfile, save_all=True, append_images=[jpeg.copy()])
|
||||||
|
|
||||||
|
self.assertTrue(os.path.isfile(outfile))
|
||||||
|
self.assertGreater(os.path.getsize(outfile), 0)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user