All options / bindings can be found at the top of the file in the __init__
function.
Pim is released under the MIT license.
Dependencies: pygobject (Python bindings for GObject) for python3 above version 3.22
PyGObject based image viewer with vim-like keybindings
License: MIT License
eg increase/decrease timer by 1s
Stumpled upon bitmaps (.bmp) and was kinda suprised pim didn't open those.
Explicit calling those behaved like giving a directory
this might be a bit too specific to my needs, but i'd like a feature where only horizontal, or only vertical images are displayed. find the screen ratio, compare to image ratio.
Like webp.
What can/could be done? And do I want to?
when i manually change the image index with eg shift+space
, the slideshow should be disabled. just another of my personal tweaks
Changed the old system
Remaining Quirks:
taken from todo comment
not sure if an app can specify overlay scrollbars, or if the theme does it. but look into this. mainly a self note.
It's possible to set the zoom factor with negative values and that won't work
gdk-pixbuf-error-quark: Das Format der Bilddatei »/path/to/picture.jpg« konnte nicht erkannt werden (3)
Traceback (most recent call last):
File "/usr/bin/pim", line 248, in move_index
g.pixbufOriginal = GdkPixbuf.PixbufAnimation.new_from_file(path)
gi.repository.GLib.Error: gdk-pixbuf-error-quark: Das Format der Bilddatei »/path/to/picture.jpg« konnte nicht erkannt werden (3)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/pim", line 219, in handle_key
action[0](*action[1:])
File "/usr/bin/pim", line 268, in move_index
g.move_index(1)
AttributeError: 'Namespace' object has no attribute 'move_index'
Error catching needs to be added. Again? A deja vu is calling...
when the slideshow reaches the end and loops back, flash the screen or something to notify the user
persist the rotation state for all images
double clicking an image should toggle fullscreen
this might be getting into feature bloat territory, but even something as bare bones as mpv
has this
edit: enable -> toggle
$ pim .
/usr/bin/pim:429: DeprecationWarning: Gdk.Screen.width is deprecated
self.Sizes['sWidth'] = screen.width()
/usr/bin/pim:430: DeprecationWarning: Gdk.Screen.height is deprecated
self.Sizes['sHeight'] = screen.height()
/usr/bin/pim:450: DeprecationWarning: Gtk.Widget.modify_bg is deprecated
viewport.modify_bg(Gtk.StateType.NORMAL, Gdk.color_parse('#999999'))
/usr/bin/pim:388: DeprecationWarning: Gdk.Cursor.new is deprecated
self.win.get_window().set_cursor(Gdk.Cursor.new(Gdk.CursorType.BLANK_CURSOR))
If the internal removal function is used and the jump to the next picture is done, it shouldn't be a defective picture. Else it will try to open it over and over.
:: Error: Couldn't open /path/to/no/longer/existing/picture.jpg
Traceback (most recent call last):
File "/usr/lib/python3.9/shutil.py", line 806, in move
os.rename(src, real_dst)
FileNotFoundError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/path/to/no/longer/existing/picture.jpg' -> '/home/omnius/.local/share/Trash/files/8f0833a5e9a848d69f14d50d29e88844'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/pim", line 219, in handle_key
action[0](*action[1:])
File "/usr/bin/pim", line 245, in move_index
delete()
File "/usr/bin/pim", line 133, in delete
shutil.move(path, TRASH + '/files/' + name)
File "/usr/lib/python3.9/shutil.py", line 820, in move
copy_function(src, real_dst)
File "/usr/lib/python3.9/shutil.py", line 435, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/usr/lib/python3.9/shutil.py", line 264, in copyfile
with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/path/to/no/longer/existing/picture.jpg'
if i use xrandr
to rotate the screen, the fullscreen
option uses the old dimensions
edit: oh, i'm a collaborator
i want zoom lock to make all images fit/full screen, instead of locking the zoom level
Since it's necessary to explicity create the pim-position file, this error is pretty useless and nerving.
Instead it should print a message if a position file could be found
Needs to be checked.
Sometimes after using pim I end up with 50-60% RAM used. Before 5-10% (No, not a case of linuxatemyram)
Could be a coincidence, but I assume there is somewhere a problem
we probably need one
edit: pim is the last project i wrote in python, so idk how anything works, but i assume we can load the config as a python module, or we could manually parse a json file
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.