Skip to content

Commit

Permalink
not add ".heic" to EXTENSIONS without pi_heif
Browse files Browse the repository at this point in the history
Signed-off-by: bigcat88 <[email protected]>
  • Loading branch information
bigcat88 authored and helgeerbe committed Jun 12, 2023
1 parent 2405c11 commit b4ccc0f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/picframe/interface_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer # py2
import urlparse

EXTENSIONS = [".jpg", ".jpeg", ".png", ".heif", ".heic"]
try:
from pi_heif import register_heif_opener
except ImportError:
register_heif_opener = None

EXTENSIONS = [".jpg", ".jpeg", ".png"]
if register_heif_opener is not None:
EXTENSIONS += [".heif", ".heic"]


def heif_to_jpg(fname):
Expand Down

0 comments on commit b4ccc0f

Please sign in to comment.