Coder Social home page Coder Social logo

pim's People

Contributors

aeosynth avatar narrat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pim's Issues

zoom to <0%

It's possible to set the zoom factor with negative values and that won't work

filter by dimensions

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.

better zoom lock

i want zoom lock to make all images fit/full screen, instead of locking the zoom level

Latest deprecations

$  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))

Errorcases

  • Pictures in different folder with the same name --> both deleted --> collision with moving the second file as a file with that name exists
  • Corrupted images

Keys

Changed the old system

Remaining Quirks:

  • Left and co cannot be combined with shift currently

react to screen rotation

if i use xrandr to rotate the screen, the fullscreen option uses the old dimensions

edit: oh, i'm a collaborator

disable slideshow on seek

when i manually change the image index with eg shift+space, the slideshow should be disabled. just another of my personal tweaks

double click fullscreen

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

Bitmaps

Stumpled upon bitmaps (.bmp) and was kinda suprised pim didn't open those.

Explicit calling those behaved like giving a directory

Error02 if no pim-position

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

config file

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

Memleak

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

overlay scrollbars

not sure if an app can specify overlay scrollbars, or if the theme does it. but look into this. mainly a self note.

Image file with corrupted data

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...

Removal of an invalidated path shouldn't trigger physical deletion

:: 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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.