occivink / mpv-gallery-view

Gallery-view scripts for mpv
The Unlicense
189 stars 20 forks source link

Cycle through thumbnail sizes on the fly #17

Closed noctuid closed 3 years ago

noctuid commented 4 years ago

It would be nice to dynamically increase/decrease the size of thumbnails with a keybinding.

occivink commented 4 years ago

since that would be relatively difficult to expose as configuration, my preferred solution would be to expose a script_message that allows reconfiguring the geometry, such that this could be implemented by a separate script

Waiifu commented 3 years ago

since that would be relatively difficult to expose as configuration, my preferred solution would be to expose a script_message that allows reconfiguring the geometry, such that this could be implemented by a separate script

Hey, I just made a pull request a couple hours ago and noticed this issue was open. What you're asking for is solved for in it, at least for playlist-view for now (as I did not bother with contact sheet yet since I don't personally use it). https://github.com/occivink/mpv-gallery-view/pull/24

occivink commented 3 years ago

This is now possible, see #24

Rafee-M commented 2 years ago

@noctuid Could you help me with setting this up? When I press g or c in mpv nothing happens. I have placed the files in the correct folders and changed input.config, still nothing. image image

occivink commented 2 years ago

My guess is that you forgot to copy gallery.lua. In mpv/scripts you need a folder named lib.disable which contains the gallery.lua file from this repo. To help troubleshoot this, launch mpv from the commandline and report any error that occur. Or start mpv with the option '--log-file=log' and upload the log file.

Also nice file manager, what is it?

Rafee-M commented 2 years ago

Thanks a lot. I forgot the lib.disable folder. It works now.

Btw, how do I exactly run this?

The file manager is One Commander

image

occivink commented 2 years ago

You mean the snippet for deleting thumbnails? This is a shell script, I do not have an equivalent solution for windows, you'll have to find one yourself.

Rafee-M commented 2 years ago

Alright, thanks a lot for your help!

Rafee-M commented 2 years ago

Also, when creating copies copies of gallery-thumbgen.lua, does the naming need to be specific or just gallery-thumbgen.lua1?

occivink commented 2 years ago

the naming should not matter, although you probably should keep the .lua extension. So gallery-thumbgen-1.lua for example.

Rafee-M commented 2 years ago

Yes, that's what I meant. Thanks for clearing it up