-
Notifications
You must be signed in to change notification settings - Fork 128
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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:
- 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)
- OS: 17.4 (probably any)
- App Version: 1.50.146 (and earlier)
Additional context
Apparently, downsizing code uses points rather than pixels, so the intended image size becomes multiplied by display scaling factor.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working