Fix #2804 : sets encoderinfo for images when saving multi-page PDF

This commit is contained in:
Ixio 2017-10-19 13:30:34 +02:00
parent 0efc194e1e
commit 5dfe5f0fa6
2 changed files with 8 additions and 1 deletions

View File

@ -80,6 +80,13 @@ class TestFilePdf(PillowTestCase):
self.assertTrue(os.path.isfile(outfile))
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__':
unittest.main()