Skip to content

Commit c7aebc0

Browse files
authored
Merge pull request #574 from astrofrog/fix-jpeg
Fix check for JPEG file as it was too restrictive
2 parents e54cd7c + d5aad84 commit c7aebc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reproject/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def is_png(filename):
304304

305305
def is_jpeg(filename):
306306
with open(filename, "rb") as f:
307-
return f.read(4) == b"\xff\xd8\xff\xe0"
307+
return f.read(3) == b"\xff\xd8\xff"
308308

309309

310310
def as_transparent_rgb(data, alpha=None):

0 commit comments

Comments
 (0)