-
Notifications
You must be signed in to change notification settings - Fork 283
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
SVG support #991
Comments
Thanks for reporting this @Rolv-Apneseth Seems to be an issue with the image crate, which only supports raster formats: image-rs/image#524 (comment) The error message comes from this line: Line 48 in e401c3c
|
Hmm I see, maybe it's a bit much for this project or what do you think? Very niche anyways I suppose. |
Yeah, quickly going through the image-rs docs and source code, I don't think it's possible for a 3rd-party to register a new format. At least not for Just speaking generally about image decoding, I think at least partial support for SVGs could be achieved by requiring the user to specify dimensions. So I wouldn't be surprised if a crate existed that implemented the image-rs traits for a type that represents an SVG image. (We could at least support SVGs as a detected language 😜) |
You're right, somehow it was missing from the list of languages in #490 😅 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Summary 💡
When running
onefetch --image path/to/file.svg
, I get the following error:While I don't know about the other image back ends, I do know that
kitty
does supportsvg
files (as confirmed here), so would it be possible to integrate support for these files foronefetch
? I can work on this, just need to know if it's possible or something you would even be interested in.Motivation 🔦
I would like to be able to display an
svg
file I have for a specific git repo.The text was updated successfully, but these errors were encountered: