Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
Document file requirement under magic feature
Browse files Browse the repository at this point in the history
  • Loading branch information
swsnr committed Feb 21, 2023
1 parent a7d8ce3 commit e3cedc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ If you package mdcat you may want to include these files too.

## Requirements

For image type detection the `file` tool with support for `--brief` and `--mime-type` flags must be available in `$PATH`.
If `mdcat` wasn't built with the `magic` feature, image type detection requires the `file` tool with support for `--brief` and `--mime-type` flags to be available in `$PATH`.

[Homebrew]: https://brew.sh
[MacPorts]: https://www.macports.org
Expand Down
3 changes: 2 additions & 1 deletion mdcat.1.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ mdcat supports most standard pixel formats by default.

mdcat silently ignores images larger than 100 MiB.

For some terminals mdcat needs to detect the mimetype; it uses the `file --brief --mime-type` for this purpose, and thus requires a compatible `file` utility in `$PATH`.
For some terminals mdcat needs to detect the mimetype.
If `mdcat` was not built with `libmagic` (see output of `--version` to check) it uses the `file --brief --mime-type` for this purpose, and thus requires a compatible `file` utility in `$PATH`.

=== SVG support

Expand Down

0 comments on commit e3cedc7

Please sign in to comment.