We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For me the image() function can't handle SVG files without conversion.
In vifmimg, I added an "svg" case which passes by a png conversion.
vifmimg
"draw") FILE="$PWD/$6" image "$1" "$2" "$3" "$4" "$5" "$FILE" ;; "svg") [ ! -f "$PCACHE" ] && \ convert -background none "$6" "${PCACHE}.png" image "$1" "$2" "$3" "$4" "$5" "${PCACHE}.png" ;;
In vifmrc:
vifmrc
" Images & SVG filextype {*.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm,*.ico,*.tif,*.svg},<image/*> {View in qimgv} qimgv %f, fileviewer <image/svg\+xml> $HOME/.config/vifm/scripts/vifmimg svg %px %py %pw %ph %c %pc $HOME/.config/vifm/scripts/vifmimg clear fileviewer <image/*> $HOME/.config/vifm/scripts/vifmimg draw %px %py %pw %ph %c %pc $HOME/.config/vifm/scripts/vifmimg clear
I wanted to combine the display of images and the output of "identify" as header.
In vifmimg, I added a new function image_margin_top() with a top margin of 2 Lines:
image_margin_top() { printf '{"action": "add", "identifier": "vifm-preview", "x": "%s", "y": "%s", "width": "%s", "height": "%s", "scaler": "contain", "path": "%s"}\n' "$2" "$(( $3 + 2 ))" "$4" "$(( $5 - 2 ))" "$6" > "$FIFO_UEBERZUG" }
I modifies "draw" & "svg" cases to use this function and then call identify:
"draw") FILE="$PWD/$6" image_margin_top "$1" "$2" "$3" "$4" "$5" "$FILE" identify "$FILE" | awk '{print $2,$3,$4,$5,$6,$7}' ;; "svg") [ ! -f "$PCACHE" ] && \ convert -background none "$6" "${PCACHE}.png" image_margin_top "$1" "$2" "$3" "$4" "$5" "${PCACHE}.png" identify "$PWD/$6" | awk '{print $2,$3,$4,$5,$6,$7}' ;;
Example:
The text was updated successfully, but these errors were encountered:
For information I wrote the same updates for ueberzug's fzfimg.sh script.
I put is in a fzf-img.sh gist, here.
Sorry, something went wrong.
No branches or pull requests
[Bug] SVG
For me the image() function can't handle SVG files without conversion.
In
vifmimg
, I added an "svg" case which passes by a png conversion.In
vifmrc
:[Feature] Identify header for images
I wanted to combine the display of images and the output of "identify" as header.
In
vifmimg
, I added a new function image_margin_top() with a top margin of 2 Lines:I modifies "draw" & "svg" cases to use this function and then call identify:
Example:
The text was updated successfully, but these errors were encountered: