-
-
Notifications
You must be signed in to change notification settings - Fork 701
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
[BUG] - Scraper and image URL getter can't identify .jpeg #3714
Comments
I can upload a .jpeg just fine. Created one in MS Paint and uploaded: https://demo.mealie.io/g/home/r/pannkakor I expect there's something wrong with the images on that website. Here's the check it's failing: mealie/mealie/services/recipe/recipe_data_service.py Lines 154 to 158 in f53cae7
|
I mentioned that uploading works fine, it's only scraping or attempting to use a URL of an image with a .jpeg. It looks like the failure is because it thinks that's not an image, which could be because it doesn't recognize .jpeg as a valid image extension. |
I wonder why the .jpg images on the same site work then? How strange. Well, thanks for looking into it! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
First Check
What is the issue you are experiencing?
When either using the scraper or using the get image by URL dialogue, Mealie is unable to identify a .jpeg. Produces a "Url is not an image" error when using the get image by URL dialogue. Interestingly, uploading from a computer works fine.
Steps to Reproduce
OR
Please provide relevant logs
INFO 2024-06-07T13:41:45 - Image URL: https://emeals-menubuilder.s3.amazonaws.com/v1/recipes/766433/pictures/large_shrimp-and-sausage-jambalaya.jpeg
INFO 2024-06-07T13:41:45 - HTTP Request: GET https://emeals-menubuilder.s3.amazonaws.com/v1/recipes/766433/pictures/large_shrimp-and-sausage-jambalaya.jpeg "HTTP/1.1 200 OK"
ERROR 2024-06-07T13:41:46 - Content-Type: binary/octet-stream is not an image
ERROR 2024-06-07T13:41:46 - Content-Type: binary/octet-stream is not an image
Mealie Version
v1.8.0 - 583bd742fb7bbeee0191a6e6601677df57d86a11
Deployment
Docker (Linux)
Additional Deployment Details
No response
The text was updated successfully, but these errors were encountered: