You are not logged in.
The exceptions mainly handle errors in the config and missing dependencies (which shouldn't happen if one uses the AUR package).
It looks like argparse does not support options that start with anything different than '-', would using capital letters be an acceptable alternative?
Offline
It looks like argparse does not support options that start with anything different than '-', would using capital letters be an acceptable alternative?
Yes, of course, it was just a suggestion based on what I am used to for such things.
I see that it does not make much sense to write one's own argparser, just to support +-options.
Offline
Another suggestion:
s/\(self.win.set_title("vimiv\) "+message)/\1")/
to prevent e.g. typed numbers from being displayed in the titlebar.
Offline
The statusbar has also received some big changes in 0.3 and the window title went hand in hand with that. The new window title will be:
"vimiv" if no images are open,
"vimiv - ${imagename}" if images are open.
Should go hand in hand with your suggestion.
Offline
Yes, sounds good.
List 5:
To continue with the statusbar, I have another suggestion:
Currently, an error message is displayed for a fixed time (5s), however not removed once a new non-error status message appears.
Could this behaviour be changed?
sg: Recalculate vector image on zooming (in)
- probably optional since this can take some time for big files.
vimiv.1:
s/.IR GEOMETRY\]/.IR GEOMETRY ]/
s/.IR SLIDESHOW-DELAY\]/.IR SLIDESHOW-DELAY ]/
Last edited by respiranto (2015-12-14 13:28:32)
Offline
Alright, 0.3 is online! Now with two screenshots on the github page.
Main differences:
Vimiv is now single window
Much better statusbar
Catch some more exceptions
Manipulation of very large images (>3MB or so) is now more responsive
Still on my TODO list:
Actual pause and play of gifs
Recalculate vector graphics
The problem is, I still have now idea how to do any of this...
Offline
Well done!
However, like always, some more points (List 6):
sg: make non-ambiguous keys concerning the image work when the library is opened
So you don't plan to implement 4.1 (-B and -F)?
sg: draw a line between the browser and the image
sg: make it configurable whether the library fullfills the whole window when no image is selected
sg: when going up a directory, mark the just left directory as current
sg: add the option to keep the library after choosing an image
Your TODO list:
Might this help you?
https://gist.github.com/revolunet/848913
You would probably have to check whether the image is a vector graphic by suffix and then redraw it upon each zoom command, just like when a new image is printed.
Unfortunately, I currently don't have the time to try this on my own.
Offline
List 6:
Something like "n", or "p"? Why would this be useful?
Should be done, works for me, is in my manpage
Sorry but nope, I don't like lines and I would have to colour it depending on the Gtk Theme of the user. Maybe sometime as a choosable option, but no priority.
Why would one want to waste space?
So if one leaves e.g. "Images" up to "home" you want "Images" to be marked?
Just focus the image once using "l" and then change focus to the image using "O". I don't know if an extra keybinding would be useful.
TODO List:
Looks interesting, just completely different than I currently handle Gifs. Will look into that, thank you!
I will play around a bit
Offline
List 6:
To not always have to switch, using O, which I just learned to use (I should really read the manpage more thoroughly)
I see, I was simply confused by the fact that error messages are still shown, which obviously makes sense.
OK
One might want it to look more consistent.
There could also be an option to display the library always in full size.
Yes.
see 1
Point 6.7:
sg: when opening /path/to/file, change directory in library to /path/to/ .
Last edited by respiranto (2015-12-14 21:07:33)
Offline
6.1 You seem to use the library a lot more than I do. Sure, done, all this was is copy-paste...
6.4 Hmm, I guess additional user settings don't do any harm. Can be done, but as 6.3 no priority.
6.5 The directory one leaves upwards is now always focused, that should be enough visual indication. Or what did you mean?
6.7 I remember having this behavior before, changed back.
Offline
It seems like 2.4, `vimiv <folder>' does not work (anymore?):
< rmac:~ > vimiv Pictures/
Traceback (most recent call last):
File "/usr/bin/vimiv", line 1598, in move_up
self.reload(os.path.abspath("."), curdir)
File "/usr/bin/vimiv", line 1607, in reload
self.scrollable_treelist.remove(self.treeview)
AttributeError: 'Vimiv' object has no attribute 'scrollable_treelist'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/vimiv", line 1882, in <module>
Vimiv().main()
File "/usr/bin/vimiv", line 1783, in main
self.parse_args()
File "/usr/bin/vimiv", line 1774, in parse_args
self.populate(args.path, True)
File "/usr/bin/vimiv", line 1273, in populate
self.move_up(arg)
File "/usr/bin/vimiv", line 1600, in move_up
self.err_message("Error: directory not accessible")
File "/usr/bin/vimiv", line 469, in err_message
self.toggle_statusbar()
File "/usr/bin/vimiv", line 495, in toggle_statusbar
self.labelbox.show()
AttributeError: 'Vimiv' object has no attribute 'labelbox'
Another point:
Would it be possible to make symlinks work?
Offline
You are right, looks like I destroyed that by changing the startup folder of the library, works again I hope
To be honest, I don't know. I will read into chasing symlinks in python.
EDIT: should work now
Last edited by karlch (2015-12-23 14:55:27)
Offline
I like this! I have a feature request: can you support the exif orientation attribute? My digital camera encodes orientation using this attribute, so if it's ignored, all the portrait-orientation photos appear rotated. I know I can manually rotate all of these, but it's easier if done automatically. Thanks!
Offline
Thanks for your feedback, glad you like it!
I added the function rotate_auto which rotates all images in the current filelist according to EXIF data. It tries to use ImageMagick and falls back to PIL if it isn't installed. By default it is bound to "a".
Hope this helps!
Offline
NIce little tool, I left some issues on the bugtracker, if you don't mind
He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.
Douglas Adams
Offline
Thanks for your feedback, glad you like it!
I added the function rotate_auto which rotates all images in the current filelist according to EXIF data. It tries to use ImageMagick and falls back to PIL if it isn't installed. By default it is bound to "a".
Hope this helps!
Thank you!
For some reason, though, it's using PIL (as indicated in the status line) even though I have imagemagick installed. Is there another package I should install for that? The PIL method seems to be nearly doubling the image size (and erasing a lot of the metadata) in order to rotate the image. Maybe the imagemagick method does this better?
Offline
karlch, great work - I really enjoy it, that's the image viewer I've been searching for years, seriously.
Is there any way to *automatically* scale/stretch the image in fullscreen mode, so that the image is always fully visible and scaled to fill the screen (either horizontally or vertically, should be auto-determined)? This is especially annoying with mid-res images on hi-res displays.
E/e shortcuts work fine, but 1) it would be nice to scale automatically, without me having to decide on the axis, and 2) to do so persistently, i.e. for all images (in the current run, or folder, or slideshow, or whatever - config option would be nice).
Am I missing something in the docs, or is this simply not meant to be implemented that way?
Last edited by esonn (2016-01-01 16:01:06)
Anyone who quotes me in their sig is an idiot. -- Rusty Russell
Offline
Sorry guys for the rather late reply, I was on holiday for a few days.
NIce little tool, I left some issues on the bugtracker, if you don't mind smile
Of course I don't mind, I will reply there.
For some reason, though, it's using PIL
What is the output of
jhead -autorot -ft /path/to/images
Is there any way to *automatically* scale/stretch the image in fullscreen mode
First of all thanks for your compliments.
If you haven't zoomed with + or - yourself it should be the default behaviour.
Additionally to the e/E shortcuts there is the w shortcut which zooms to fit unless you prefix it with a number.
What vimiv does not do is "overzoom" small images automatically as they possibly look horrible. I could add a keybinding or a config option therefore though if that is what you mean. I will also take a look at your fork
Offline
jmartl109 wrote:For some reason, though, it's using PIL
What is the output of
jhead -autorot -ft /path/to/images
It wasn't installed. I installed it, and now this is much better! Maybe jhead should be an optdepends, in addition to imagemagick.
Offline
It wasn't installed. I installed it, and now this is much better! Maybe jhead should be an optdepends, in addition to imagemagick.
Thanks for this, I thought it was part of imagemagick for some reason... I added it to the optdepends
Offline
Back again with version 0.4
The main change is that vimiv now has an actual command line at the bottom of the screen. Tab-completion works, also for paths.
The update was rather large and I had a few doubts concerning how to implement this, so if you have bugs, suggestions, ... I would love to hear them!
As always, further information on github and in the man-page.
Offline
Great to hear!
I have not tested many of the new features yet, mostly due to the fact that I am in most cases satisfied by `vimiv file|dir' and then possibly iterating over the images in the given directory.
Though, especially the command-line function sounds nice.
Some notes on that:
I tried '!echo test > ~/test.txt' which does not seem to have any effect.
sg: A command history would be great
sg: I personally would prefer the entered colon to be visible, but probably it is not possible to give the input box a layout that looks good with that.
One small issue that I have noted, and that is probably not new, is, that when I open an image via a symbolic link, vimiv's working directory is set to the directory the original, regular file resists in, which is not desirable, especially when a directory contains more than image respectively symbolic link to such one.
Offline
Nice to hear from you again!
This is almost certainly because of the output redirection. This doesn't work out of the box and I don't really see any point in implementing it.
I implemented it. The history file is ~/.vimiv/history. The keybinding therefore is ^k or ^j, possibly I should use arrow keys per default and only change that in my own vimivrc...
I have thought about this. It will be implemented when I find out how to close the command line as soon as the colon is deleted.
Makes sense, I will see how I can change this. I don't really use it for any symbolic links so I tend to not notice stuff like this
Offline
So you do more than just something like system(), after replacing % and similar?
Again, I should have read respectively searched the manpage first...
Though I would still like to see the arrow keys achieving this task.
That's possibly the point where the fancy library you probably use for reading the input string, fails.
Unless it either allows you to do specifically what you want, i.e. to terminate as soon as the input is empty or it allows you to perform custom operations after each keypress to achieve the effect manually.
another point, related to 1.: I don't know, whether it is already implemented, but it should necessarily be possible to escape special characters such as %.
Offline
I did use Popen from subprocess catching stdout and stderr. I now do not catch stdout as I don't really use it anyway and just pass it to the shell. This means it works now. Although I don't see any sense, it is a cleaner solution. Thanks!
You can always bind the arrow keys in your config for the moment...
Looks like connecting to the text changed event is a good solution.
Not implemented yet, makes sense, shouldn't be difficult.
EDIT: failed to mention that I have not pushed to master yet, it works for me but I still want to do a bit more before pushing
EDIT2: should all be done
Last edited by karlch (2016-01-14 23:53:13)
Offline