plone / Products.CMFPlone

The core of the Plone content management system
https://plone.org
GNU General Public License v2.0
249 stars 188 forks source link

User portrait, allow SVG images as a portrait. Allow site administrator to define dimensions of portrait. #3909

Open rber474 opened 7 months ago

rber474 commented 7 months ago

PLIP (Plone Improvement Proposal)

Responsible Persons

Proposer: Rafael Bermúdez @rber474

Seconder: Seconder needed

Abstract

Following incident https://github.com/plone/plone.app.users/issues/122, where an exception occurred when loading an SVG image as a portrait in the "personal-information" view, the possibility has arisen for Plone to allow the use of this type of image as a personal icon or portrait.

Currently, the image loading process on that screen involves scaling to 75x100 pixels, utilizing Pillow (PIL) to adjust the portrait.

The portrait is used in the @@author view but is not displayed on the personal information screen, user searches, or utilized as an icon in the user menu.

Motivation

Some users just use SVG images for their avatar or profile pictures and Plone doesn't offer that possibility out-of-the-box. As well, once the profile picture is upload, it's never displayed in the personal information view.

Proposal & Implementation

Configurable settings

Allow SVG uploads

Show portrait across the site

Advanced changes:

Deliverables

Risks

Participants

Please, review this plip @plone/framework-team

stevepiercy commented 7 months ago

Although indirectly related, I can imagine that some users might want their profile image (or entire profile) not to be public, but would be OK with it being viewed by other authenticated users. I only thought about this because an admin show/hide is in the PLIP.

tisto commented 3 months ago

The user portraits are an area where we need improvements. @sneridagh can you put this on the agenda for the next @plone/volto-team meeting to discuss the Volto side of this? I know we discussed this in the past but I couldn't find the ticket. @plone/framework-team and @plone/classicui-team should chime in here as well.