Open rber474 opened 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.
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.
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
Introduce configuration options in the usersgroup control panel:
Allow SVG uploads
Image/svg+xml
, thus avoiding scaling.Show portrait across the site
Advanced changes:
Deliverables
Products.PlonePAS:
Products.CMFPlone:
controlpanel.browser.usergroups.UsersGroupsControlPanelView
plone.base:
interfaces.controlpanel.IUsersGroupsSettingsSchema
plone.app.users:
plone.app.layout:
Barceloneta.Theme If any css added or edited.
mockup and plone.staticresources if any JS functionality is added (i.e: zoom or position change)
plone.app.locales
Risks
Participants
Please, review this plip @plone/framework-team