From a9441a475d4c4133f161b7927352b4bda5cc9b6f Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Wed, 12 Jan 2022 17:29:25 +1100 Subject: [PATCH] Added IREC header entry for use with Bio-formats library --- src/PIL/SpiderImagePlugin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PIL/SpiderImagePlugin.py b/src/PIL/SpiderImagePlugin.py index 061efe8ec..11c706b4d 100644 --- a/src/PIL/SpiderImagePlugin.py +++ b/src/PIL/SpiderImagePlugin.py @@ -249,6 +249,7 @@ def makeSpiderHeader(im): # NB these are Fortran indices hdr[1] = 1.0 # nslice (=1 for an image) hdr[2] = float(nrow) # number of rows per slice + hdr[3] = float(nrow) # number of records in the image hdr[5] = 1.0 # iform for 2D image hdr[12] = float(nsam) # number of pixels per line hdr[13] = float(labrec) # number of records in file header