Skip to content

Commit

Permalink
add jpg for rostwitter file suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
knorth55 authored and k-okada committed Feb 26, 2023
1 parent 67263e9 commit 72c9608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rostwitter/python/rostwitter/cv_util.py
Expand Up @@ -41,7 +41,7 @@ def get_image_from_text(text):

if os.path.exists(text):
path = text
if imghdr.what(path) in ['jpeg', 'png', 'gif']:
if imghdr.what(path) in ['jpeg', 'jpg', 'png', 'gif']:
with open(path, 'rb') as f:
return f.read()
else:
Expand Down

0 comments on commit 72c9608

Please sign in to comment.