You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding a custom icon, KeePassium downscales large images to fit in 128x128 px. However, the images finally stored in the DB happen to be 2x or 3x of that size (so, 256x256 or 384x384 px)
How to reproduce
Steps to reproduce the behavior:
Download a 130x130px (or larger) image and save it to device gallery
Open some entry → Edit → tap icon → Change Icon → Plus → pick the image
Save changes
Open the database in KeePassXC, export the file to XML format, convert the CustomIcon from Base64 to binary format.
Observe the image resolution is 384x384px.
Expected behavior
Image resolution should be 128x128px.
Environment:
Device: iPhone 15 (device) and iPhone 15 Pro Max (simulator)
When tested on the 120x120px favicon of https://keepassium.com, the affected version saves a 384x384px PNG weighting 58 kB. Once fixed, it's a 120x120px with just 9.5 kB 🙂
Description
When adding a custom icon, KeePassium downscales large images to fit in 128x128 px. However, the images finally stored in the DB happen to be 2x or 3x of that size (so, 256x256 or 384x384 px)
How to reproduce
Steps to reproduce the behavior:
Expected behavior
Image resolution should be 128x128px.
Environment:
Additional context
#353 [thanks, @ixs ]
Apparently, downsizing code uses points rather than pixels, so the intended image size becomes multiplied by display scaling factor.
The text was updated successfully, but these errors were encountered: