gramps-project / gramps-web-api

A RESTful web API for Gramps - backend of Gramps Web
https://www.grampsweb.org
GNU Affero General Public License v3.0
84 stars 46 forks source link

Transparent PNG images #472

Open pumpking19 opened 11 months ago

pumpking19 commented 11 months ago

I have transparent PNG images as avatars in profiles in Gramps Desktop, but after sync with Web version it converted into not transparent JPG images, and background became black. Is it possible to support transparent PNG images in Web version? img_0001

DavidMStraub commented 11 months ago

Transferring to API

DavidMStraub commented 11 months ago

Hi, the images are not converted, but the thumbnails use JPEG format which doesn't use transparency. Switching to PNG thumbnails or even multiple thumbnails format would be quite a large change and I doubt it's worth it. As a workaround, we could consider making the background white instead of black (I was not aware it defaults to black), but not sure that is really a solution.

pumpking19 commented 11 months ago

Hi! Thank you for your answer! Yes, if there is no other way out, I think the white background color will be much better than black.