Skip to content

Images added to breaks display very small regardless of file size #866

Closed

Description

@123happily

To Reproduce
Steps to reproduce the behavior:

  1. Add an image to a break in the settings
  2. When break is started, image is miniscule

Expected behavior
I expected the images to be shown at their native resolution, perhaps capped so they aren't too large. Ideally there'd be a size toggle somewhere so images could also be scaled up.

Desktop (please complete the following information):

  • OS: Nobara
  • Desktop Env: Hyprland
  • Safe Eyes version: 3.3.2

(Due to my distribution and unfamiliarity building from source, I'm unable to verify if this is a Flatpak-exclusive problem)

flatpak run io.github.slgobinath.SafeEyes --debug
2026-04-05 12:24:42,411 [DEBUG]:[MainThread] Initialize the platform
2026-04-05 12:24:42,411 [DEBUG]:[MainThread] Create desktop entry at /home/jj/.local/share/applications/io.github.slgobinath.SafeEyes.desktop
2026-04-05 12:24:42,411 [DEBUG]:[MainThread] Create icon link at /home/jj/.local/share/icons/hicolor/128x128/apps/io.github.slgobinath.SafeEyes.png
2026-04-05 12:24:42,411 [DEBUG]:[MainThread] Create icon link at /home/jj/.local/share/icons/hicolor/16x16/apps/io.github.slgobinath.SafeEyes.png
2026-04-05 12:24:42,411 [DEBUG]:[MainThread] Create icon link at /home/jj/.local/share/icons/hicolor/16x16/status/io.github.slgobinath.SafeEyes-disabled.png
2026-04-05 12:24:42,412 [DEBUG]:[MainThread] Create icon link at /home/jj/.local/share/icons/hicolor/16x16/status/io.github.slgobinath.SafeEyes-enabled.png
2026-04-05 12:24:42,412 [DEBUG]:[MainThread] Create icon link at /home/jj/.local/share/icons/hicolor/16x16/status/io.github.slgobinath.SafeEyes-timer.png
2026-04-05 12:24:42,412 [DEBUG]:[MainThread] Create icon link at /home/jj/.local/share/icons/hicolor/24x24/apps/io.github.slgobinath.SafeEyes.png
2026-04-05 12:24:42,412 [DEBUG]:[MainThread] Create icon link at /home/jj/.local/share/icons/hicolor/24x24/status/io.github.slgobinath.SafeEyes-disabled.png
2026-04-05 12:24:42,412 [DEBUG]:[MainThread] Create icon link at /home/jj/.local/share/icons/hicolor/24x24/status/io.github.slgobinath.SafeEyes-enabled.png
2026-04-05 12:24:42,412 [DEBUG]:[MainThread] Create icon link at /home/jj/.local/share/icons/hicolor/24x24/status/io.github.slgobinath.SafeEyes-timer.png
2026-04-05 12:24:42,412 [DEBUG]:[MainThread] Create icon link at /home/jj/.local/share/icons/hicolor/32x32/apps/io.github.slgobinath.SafeEyes.png
2026-04-05 12:24:42,412 [DEBUG]:[MainThread] Create icon link at /home/jj/.local/share/icons/hicolor/32x32/status/io.github.slgobinath.SafeEyes-disabled.png
2026-04-05 12:24:42,412 [DEBUG]:[MainThread] Create icon link at /home/jj/.local/share/icons/hicolor/32x32/status/io.github.slgobinath.SafeEyes-enabled.png
2026-04-05 12:24:42,413 [DEBUG]:[MainThread] Create icon link at /home/jj/.local/share/icons/hicolor/48x48/apps/io.github.slgobinath.SafeEyes.png
2026-04-05 12:24:42,413 [DEBUG]:[MainThread] Create icon link at /home/jj/.local/share/icons/hicolor/48x48/status/io.github.slgobinath.SafeEyes-disabled.png
2026-04-05 12:24:42,413 [DEBUG]:[MainThread] Create icon link at /home/jj/.local/share/icons/hicolor/48x48/status/io.github.slgobinath.SafeEyes-enabled.png
2026-04-05 12:24:42,413 [DEBUG]:[MainThread] Create icon link at /home/jj/.local/share/icons/hicolor/64x64/apps/io.github.slgobinath.SafeEyes.png
2026-04-05 12:24:42,414 [INFO]:[MainThread] Remote instance
2026-04-05 12:24:42,414 [INFO]:[MainThread] Safe Eyes is already running

debug log

I haven't edited the configuration directly.

I'm kind of a brick so I don't know how to find these files properly (because it's a Flatpak)

Screenshots

Ignore that it's windowed, I was just doing what had to be done to get a screenshot. Usually it's fullscreen and equally small.

Image

The 400x400 png icon asset:

Image It's beautiful work I know.

I wish I could blame my monitor resolution but 400x400 should be much larger than this here.

Apologies if this isn't a bug and I'm missing something obvious.

Activity

  1. 123happily commented on Apr 5, 2026

    @123happily
    Author

    The screenshot of the issue isn't loading on my end, something about the upload might be broken. But basically the icon is smaller than even a single letter in the break title- not visible. I've tried to attach a smaller one here.

    Image
  2. archisman-panigrahi commented on Apr 5, 2026

    @archisman-panigrahi
    Collaborator

    I can reproduce this (KDE + EndeavourOS). Not a flatpak issue.

  3. added a commit that references this issue on Apr 5, 2026
    f466cec
  4. archisman-panigrahi commented on Apr 5, 2026

    @archisman-panigrahi
    Collaborator

    Thanks for reporting the bug. I created a PR to fix it.

    Image

    To test it, run the following commands

    git clone https://github.com/archisman-panigrahi/SafeEyes
    cd SafeEyes
    git checkout bigger-image-size-break
    python -m safeeyes
    
  5. archisman-panigrahi commented on Apr 5, 2026

    @archisman-panigrahi
    Collaborator

    @123happily I'll merge it and release a new version after you test the fix and give me some feedback.

  6. 123happily commented on Apr 5, 2026

    @123happily
    Author

    That works fantastically. No feedback to give from me.
    Thank you for doing that so quickly! and thanks for your patience with me learning how to test it ^^;

  7. added a commit that references this issue on Apr 5, 2026
    84aa99e
  8. 123happily commented on Apr 22, 2026

    @123happily
    Author

    Hi,
    Just updated and re-added my images. Unfortunately after deleting the images from my Downloads, the application has difficulty opening the settings menu for any break which contained one of those images (and it doesn't display the image when the break runs).
    That's expected to an extent, but it's difficult to fix because I can't re-assign the images (since the settings menu won't open). Here's a relevant error message if it's helpful;

    Traceback (most recent call last):
      File "/app/lib/python3.13/site-packages/safeeyes/ui/settings_dialog.py", line 392, in on_properties_clicked
        self.on_properties()
        ~~~~~~~~~~~~~~~~~~^^
      File "/app/lib/python3.13/site-packages/safeeyes/ui/settings_dialog.py", line 148, in <lambda>
        on_properties=lambda: self.__show_break_properties_dialog(
                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
            break_config,
            ^^^^^^^^^^^^^
        ...<6 lines>...
            on_remove=lambda: parent_box.remove(box),
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        ),
        ^
      File "/app/lib/python3.13/site-packages/safeeyes/ui/settings_dialog.py", line 255, in __show_break_properties_dialog
        dialog = BreakSettingsDialog(
            self,
        ...<6 lines>...
            on_remove,
        )
      File "/app/lib/python3.13/site-packages/safeeyes/ui/settings_dialog.py", line 645, in __init__
        pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(
            self.break_config["image"], 16, 16, True
        )
    gi.repository.GLib.GError: g-file-error-quark: Failed to open file “/run/user/1000/doc/a3563749/hip flexor.png”: No such file or directory (4)
    

    EDIT: Restoring the images to their exact locations doesn't actually resolve the issue, which is strange.

  9. archisman-panigrahi commented on Apr 23, 2026

    @archisman-panigrahi
    Collaborator

    @123happily This will be fixed in the pull request #887. Thanks for reporting.

  10. archisman-panigrahi commented on Apr 23, 2026

    @archisman-panigrahi
    Collaborator

    @123happily Meanwhile, you can reset safeeyes (click on the safeeyes icon in settings and press reset) to fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions