Fehは画像にカスタムテキストを表示します。

Fehは画像にカスタムテキストを表示します。

feh画面にカスタムテキストを表示するために使用できる画像ビューアの例を見つけたいと思います。

私は自分のアプリケーションを書いていくつかの作業を行っています。

私が見つけたすべての文書には十分な情報がありませんでした。

--info [flag]command_line
          Execute command_line and display its output in the bottom left 
          corner of the image. Can be used to display e.g. image dimensions or 
          EXIF information. Supports FORMAT SPECIFIERS. If flag is set to “;”, 
          the output will not be displayed by default, but has to be enabled 
          by the toggle_info key.

テキストを入力としてマークしたり、指定されたファイルからテキストを読み取るコマンドを持つ人はいますか?

ベストアンサー1

あなたはそれを使用することができます

--info "command"

コマンドの出力は、図の左下に表示されます。 ~からman feh

--info [flag]commandline
        Execute commandline and display its output in the bottom left corner of
        the image.  Can be used to display e.g. image dimensions or EXIF informa‐
        tion.  Supports FORMAT SPECIFIERS.  If flag is set to ";", the output will
        not be displayed by default, but has to be enabled by the toggle_info key.

また、使用することができます

--caption-path captions/

これには、画像ファイルに関連付けられている名前のテキストファイルがあり、このファイルのテキストは画像の下部近くの水平中央に配置されます。

-K, --caption-path path
        Path to directory containing image captions.  This turns on caption view‐
        ing, and if captions are found in path, which is relative to the directory
        of each image, they are overlayed on the displayed image.  E.g. with cap‐
        tion path "captions/", and viewing image "images/foo.jpg", the caption
        will be looked for in "images/captions/foo.jpg.txt".

テキストサイズを制御することもできます。

--font "yudit/24" 

-e, --font font
        Set global font.  Should be a truetype font, resident in the current
        directory or the font directory, and should be defined in the form font‐
        name/points, like "myfont/12".

空白と空白行を出力して実際のテキストを右または上にスライドさせるだけでなく、デフォルトの場所から出力を移動する方法/方法がわかりません。


デモコマンド、

$ find
./captions
./captions/sudodus-background.png.txt
./sudodus-background.png

S feh --caption-path  captions/ --font "yudit/24" \
--info "echo '           This is output from an echo command\n\n'" \
sudodus-background.png

デモ写真、

ここに画像の説明を入力してください。

おすすめ記事