Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working with images is great, but pdf does not work #5

Open
chrischtili opened this issue Dec 26, 2024 · 5 comments
Open

Working with images is great, but pdf does not work #5

chrischtili opened this issue Dec 26, 2024 · 5 comments

Comments

@chrischtili
Copy link

PIL.UnidentifiedImageError: cannot identify image file UploadedFile(file_id='d6c294fe-9942-451e-b371-f08af26327b9', name='IMG_677922CC6FA1-1.pdf', type='application/pdf', size=703795, _file_urls=file_id: "d6c294fe-9942-451e-b371-f08af26327b9" upload_url: "/_stcore/upload_file/b05cd0b0-4e16-4fd6-9c1d-2e5d963d47b7/d6c294fe-9942-451e-b371-f08af26327b9" delete_url: "/_stcore/upload_file/b05cd0b0-4e16-4fd6-9c1d-2e5d963d47b7/d6c294fe-9942-451e-b371-f08af26327b9" ) Traceback: File "/Users/christian/git/Ollama-OCR/src/ollama_ocr/app.py", line 247, in <module> main() File "/Users/christian/git/Ollama-OCR/src/ollama_ocr/app.py", line 163, in main image = Image.open(uploaded_file) File "/Users/christian/Library/Python/3.9/lib/python/site-packages/PIL/Image.py", line 3536, in open raise UnidentifiedImageError(msg)

@imanoop7
Copy link
Owner

I have tested it with different PDF, it is working.
try with any other PDF file, if issue persist- comment

@chrischtili
Copy link
Author

No matter which PDF I upload, I always get this error

@imanoop7
Copy link
Owner

will check on this

@tin2tin
Copy link

tin2tin commented Jan 8, 2025

Same

@bbz525
Copy link

bbz525 commented Feb 12, 2025

Same plus 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants