예제 #1
0
파일: image.py 프로젝트: drummonds/magickpy
 def testWriteError(self):
     im = Image.read(self.samplepath)
     self.assertRaises(ImageMagickException, im.write, '/tmp/not_existent_directory/my.jpg')
예제 #2
0
파일: image.py 프로젝트: drummonds/magickpy
 def testRead2(self):
     res = Image.read(self.samplepath2)
     self.assertTrue(res)
     return res
예제 #3
0
파일: image.py 프로젝트: drummonds/magickpy
 def testWrite(self):
     im = Image.read(self.samplepath)
     self.assertTrue(im.write(self.outputpath))
예제 #4
0
파일: image.py 프로젝트: drummonds/magickpy
 def testPDFConversionToImage(self):
     """
     This tests a use case of converting a PDF to a thumbnail of the first page
     """
     im = Image.read(self.pdfpath)
     self.assertTrue(im.write(self.outputpath))
예제 #5
0
파일: image.py 프로젝트: drummonds/magickpy
 def testWriteError(self):
     im = Image.read(self.samplepath)
     self.assertRaises(ImageMagickException, im.write,
                       '/tmp/not_existent_directory/my.jpg')
예제 #6
0
파일: image.py 프로젝트: drummonds/magickpy
 def testWrite(self):
     im = Image.read(self.samplepath)
     self.assertTrue(im.write(self.outputpath))
예제 #7
0
파일: image.py 프로젝트: drummonds/magickpy
 def testRead2(self):
     res = Image.read(self.samplepath2)
     self.assertTrue(res)
     return res
예제 #8
0
파일: image.py 프로젝트: drummonds/magickpy
 def testPDFConversionToImage(self):
     """
     This tests a use case of converting a PDF to a thumbnail of the first page
     """
     im = Image.read(self.pdfpath)
     self.assertTrue(im.write(self.outputpath))