Skip to content
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

Support MIME types of image formats? #17

Open
Arcitec opened this issue Oct 17, 2019 · 1 comment
Open

Support MIME types of image formats? #17

Arcitec opened this issue Oct 17, 2019 · 1 comment

Comments

@Arcitec
Copy link

Arcitec commented Oct 17, 2019

Hi @rossy, kickass utility. Great work!

But did you know that mpv is the best image viewer in the world? Modern GUI, lightning fast GPU-accelerated pan and zoom and rotation, lightning fast image loading, and with my Blackbox, Gallerizer, Colorbox and Leapfrog (https://github.com/mpv-player/mpv/wiki/User-Scripts) utilities, the navigation is incredibly good. Keyboard-based folder navigation, auto-generated playlists for all files in all subfolders of the given folder, ability to jump by +/- any number of images ("forward by 1, forward by 10" etc are all keybindable), and ability to jump to random images, and much more. And colorbox takes care of enhancing the images in realtime with filters such as contrast, saturation, sharpness, etc. Other utilities such as "auto-keep-gui-open.lua" (from my repo too) will ensure that mpv doesn't auto-close after the final image (playlist entry) is reached. And "cycle-video-rotate.lua" (yet another from my repo) gives you lossless rotation of the photos.

Sure, it took a bunch of utilities to make mpv this good, but nothing else beats it as an image viewer on any platform. Nothing else is as fast, powerful, scriptable and easy to navigate.

That begs the question: Would you be up for adding photo mime types to the registration so that mpv can be chosen as default photo viewer in Windows?

@rossy
Copy link
Owner

rossy commented Oct 24, 2019

Thanks. I'll consider it, but my main concern is that mpv isn't a particularly good photo viewer out of the box (mainly because of keep-open not being on by default.) If there were image filetypes in the list, someone might accidentally make mpv their default photo viewer if they blindly assign it all supported types. I don't really like the idea of making a separate batch file for image types either (see #12.)

I could change the script to add mpv to the Open With menu for image filetypes. That would make it easier for users to manually add associations. Also, if you or someone else made a fork with image filetypes included, I could link to it from here. The script was designed to be easy to modify, so users could add their own types. The perceived type for images is "image", so a file type line for an image format would look like this:

call :add_type "image/png" "image" "PNG File" ".png"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants