Commit 2efad81e authored by Thomas Bernhart's avatar Thomas Bernhart
Browse files

Do not normalize file extension jpg to jpeg

parent caaa50be
......@@ -26,12 +26,8 @@ def _normalize_document_id(document_id):
def _normalize_file_extension(original_file_name):
file_ext_mapping = {
".jpg": ".jpeg"
}
ext = path.splitext(original_file_name)[1]
return file_ext_mapping.get(ext.lower(), ext.lower())
return ext.lower()
def _is_image_file(file_name):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment