diff --git a/libervia/backend/plugins/plugin_xep_0264.py b/libervia/backend/plugins/plugin_xep_0264.py index 284f11df..78bfe5a7 100644 --- a/libervia/backend/plugins/plugin_xep_0264.py +++ b/libervia/backend/plugins/plugin_xep_0264.py @@ -167,6 +167,11 @@ class XEP_0264(object): with self.host.common_cache.cache_data( PLUGIN_INFO[C.PI_IMPORT_NAME], uid, MIME_TYPE, max_age ) as f: + # XXX: JPEG is used and doesn't support transparency, we need to convert + # convert to RGB. We may want to change that in the future if another format + # is used. + if img.mode in ("RGBA", "LA", "P"): + img = img.convert("RGB") img.save(f, SAVE_FORMAT) if fix_orientation: log.debug(f"fixed orientation for {f.name}")