-
-
Notifications
You must be signed in to change notification settings - Fork 164
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
Not all image formats are supported. #128
Comments
Didn't test BMP or WEBP but agree with PNG: https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png |
Ok, that one is on me. Misconfiguration of Nginx on my part. |
The problem with WEBP definitely seems to lie with ollamas implementation ollama/ollama#2457 currently only png and jpeg are working. Multimodal llm based on LLaVa, for example, should be able to handle webp and many other formats too. |
@MohamedBassem maybe sharp could be used for something like this for ollama in inference.ts? Convert to temporary .jpeg images which get sent to ollama and deleted afterwards (Disclaimer: Not a programmer, don't understand the code, just used AI):
heic and webp just as an example. But it seems that sharp doesn't even support heic out of the box https://obviy.us/blog/sharp-heic-on-aws-lambda/ "only JPEG, PNG, WebP, GIF, AVIF, TIFF and SVG images". Well, maybe it helps😅👍 |
@Deathproof76 thanks for sharing the code, I'm already working on something similar using sharp as well :) |
Some image formats don't work corectly in Hoarder.
PNG and BMP can't be added at all using Web UI
WEBP can't be parsed with AI - Ollama in my case.
The text was updated successfully, but these errors were encountered: