Skip to content

Commit 57dbbf5

Browse files
committed
FIX: Do not discard first snapshot image assuming is the logo
1 parent 2d02ded commit 57dbbf5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyxnat/core/derivatives/validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def extract_snapshots(fp):
7777
for page in range(len(doc)):
7878
xrefs.extend([img[0] for img in doc.get_page_images(page)])
7979
xrefs = sorted(set(xrefs))
80-
for k, xref in enumerate(xrefs[1:]):
80+
for k, xref in enumerate(xrefs):
8181
pix = fitz.Pixmap(doc, xref)
8282
fp_snap = op.join(dn, "{}_{}.png".format(bn, k))
8383
if pix.n >= 5: # CMYK: convert to RGB first

0 commit comments

Comments
 (0)