From 879aeb9b3a10be7360c7e94a062ceb88171d2814 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sun, 19 Jun 2016 15:13:02 +1000 Subject: [PATCH] Changed SpiderImagePlugin register and save calls to use format property --- PIL/SpiderImagePlugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PIL/SpiderImagePlugin.py b/PIL/SpiderImagePlugin.py index 71a51150b..07f623c7b 100644 --- a/PIL/SpiderImagePlugin.py +++ b/PIL/SpiderImagePlugin.py @@ -282,7 +282,7 @@ def _save(im, fp, filename): def _save_spider(im, fp, filename): # get the filename extension and register it with Image ext = os.path.splitext(filename)[1] - Image.register_extension("SPIDER", ext) + Image.register_extension(SpiderImageFile.format, ext) _save(im, fp, filename) # -------------------------------------------------------------------- @@ -319,4 +319,4 @@ if __name__ == "__main__": print( "saving a flipped version of %s as %s " % (os.path.basename(filename), outfile)) - im.save(outfile, "SPIDER") + im.save(outfile, SpiderImageFile.format)