Android icon indicating copy to clipboard operation
Android copied to clipboard

Manually set background colour of card image

Open baudav opened this issue 8 months ago • 3 comments

I can't set background color for preview card that is not full size. After update catima (more previous version) catima change backgound from black to white. If choice background color, this remove picture. I can't now set background color to fill card preview with black background.

Image

baudav avatar Apr 06 '25 10:04 baudav

Choosing your own background colour was never supported. The default background colour being either white/black instead of the dominant colour was done to fix #2199, which became an issue when adding pkpass support (as those icons were often transparent).

I'm not sure if it makes sense to add complexity to add a feature to set your own background colour as this is only relevant when the picture is incorrectly cropped.

TheLastProject avatar Apr 06 '25 10:04 TheLastProject

Maybe we can find a better image cropping/editing library which allows adding a background manually, to keep Catima's code simpler and more generic? The current one doesn't seem actively maintained anymore anyway.

TheLastProject avatar Apr 06 '25 11:04 TheLastProject

OK, I confirm the link with #2199; it's raison I changed my card and cropped 1:1 to better appearance. I have the same reverse problem with white card cropped 1:1, catima add black. Yes to another image cropping

baudav avatar Apr 06 '25 19:04 baudav