We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5580cf1 commit d3322ecCopy full SHA for d3322ec
Tests/test_file_libtiff.py
@@ -228,6 +228,16 @@ def test_additional_metadata(self):
228
229
TiffImagePlugin.WRITE_LIBTIFF = False
230
231
+ def test_int_dpi(self):
232
+ # issue #1765
233
+ im = hopper('RGB')
234
+ out = self.tempfile('temp.tif')
235
+ TiffImagePlugin.WRITE_LIBTIFF = True
236
+ im.save(out, dpi=(72, 72))
237
+ TiffImagePlugin.WRITE_LIBTIFF = False
238
+ reloaded = Image.open(out)
239
+ self.assertEqual(reloaded.info['dpi'], (72.0, 72.0))
240
+
241
def test_g3_compression(self):
242
i = Image.open('Tests/images/hopper_g4_500.tif')
243
out = self.tempfile("temp.tif")
0 commit comments