Commit Graph
9 Commits
Author SHA1 Message Date
Juanjo M b6681df03c Fix "Unknown image format" error when showing or updating profiles
wx only decodes the image formats its own handlers support. Mastodon
instances commonly serve avatars and headers as WebP, so wx.Image failed
and raised a modal "Unknown image format" dialog, which blocked the user
from updating their profile or from reading someone's profile.

Images are now decoded with Pillow and their raw pixel data handed over
to wx, through a new mysc.image_utils module shared by the Mastodon and
Bluesky profile dialogs. Undecodable or unreachable images log the
problem and leave an empty placeholder instead of raising.

Also accept WebP and JPEG files in the header/avatar file pickers, warn
the user with a common message dialog when the picked file cannot be
read, and fix the parentless wx.StaticBitmap placeholders that were
created when a profile image could not be downloaded.
2026-08-02 15:08:25 +01:00
Mohamed b1bf2ea95f Updated shortcut for Bot account so it's not the same as bio. Also updated shortcut for posts 2025-10-20 17:18:12 -04:00
Mohamed 30ce19ad6c Added keyboard shortcuts to view profile dialog 2024-05-23 19:54:47 -04:00
Abdulqadir Ahmad 8c3fc2bbb8 updated show user profile dialog to download images in a separate thread 2023-12-02 08:50:57 +01:00
Abdulqadir Ahmad 80df3f254b Removed number of rows in grid sizer of show user profile dialog 2023-12-02 06:56:58 +01:00
Abdulqadir Ahmad f4ec03099a added actions, following, followers and posts button to show user profile dialog 2023-08-27 17:56:39 +01:00
Abdulqadir Ahmad 15e2032afb added fields for created_at, locked, bot and discoverable 2023-08-12 10:32:29 +01:00
Abdulqadir Ahmad 35ba915be6 fix show user profile not working when a post have mentions 2023-08-10 19:15:34 +01:00
Abdulqadir Ahmad 1d8fefe7d3 created show user profile dialog 2023-08-10 17:19:58 +01:00