Skip to content

Commit

Permalink
allow for .jpg images (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
hexapode authored May 23, 2024
1 parent 0c83fbd commit d19b35c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llama_parse/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,8 @@ def get_images(self, json_result: List[dict], download_path: str) -> List[dict]:

# get a valid image path
if not image_path.endswith(".png"):
image_path += ".png"
if not image_path.endswith(".jpg"):
image_path += ".png"

image["path"] = image_path
image["job_id"] = job_id
Expand Down

0 comments on commit d19b35c

Please sign in to comment.