Skip to content

MPV is a great image viewer - let's make it official. #7983

@strelec

Description

@strelec

I have been using MPV as an image viewer for the past 6 months, and all I can say is, I am impressed. It is lightweight, loads images quickly, even navigation between images in the same folder is super fast (does it do buffering?). Moreover, it opens any image format, including WebP.

It is better than any image viewer out there currently.

I propose these changes:

  1. Add image/* mime associations by default.
  2. Add input and config associations (see below).
  3. Mouse drag to pan support.

mpv.conf:

[image]
autofit-larger=80%x80%
force-window=yes
hr-seek=yes
image-display-duration=inf
input-conf=~/.config/mpv/image-input.conf
loop-playlist=inf
loop-file=inf
mute=yes
reset-on-next-file=mute,video-pan-x,video-pan-y,video-zoom
script=/usr/share/mpv/lua/autoload.lua

image-input.conf:

1 repeatable playlist-prev
2 repeatable playlist-next
3 set mute no
` cycle video-unscaled
ENTER cycle pause
DOWN seek -2
UP seek 2
LEFT repeatable playlist-prev
RIGHT repeatable playlist-next
MOUSE_BTN3 add video-zoom 0.1
MOUSE_BTN4 add video-zoom -0.1
MOUSE_BTN7 add ao-volume -5
MOUSE_BTN8 add ao-volume 5
SPACE repeatable playlist-next
TAB set video-zoom 0 ; set video-pan-x 0 ; set video-pan-y 0
a repeatable add video-pan-x 0.05
d repeatable add video-pan-x -0.05
s repeatable add video-pan-y -0.05
w repeatable add video-pan-y 0.05
q seek -1
e seek 1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions