joystream
joystream copied to clipboard
Downscale avatar images during member migration
Problem
When we do migration of memberships from Rhodes to Carthage OR from Carthage to Mainnet, it would be beneficial to take all the existing member avatars and downscale them to some reasonable sizes. Currently, some of the members have huge images associated with their profiles, making both Pioneer's and Atlas' performance degraded.
Proposal
As all new memberships created with both apps after Carthage will use new Atlas Avatar Service, we will use the same for migrated memberships. Let's create a script, or modify a script that we will be using for migrating the memberships, so that for each member it downloads the avatar image linked via URL, uses some library to convert it to reasonable size and then upload it to Atlas Avatar Service, and update original member profile with URL linking to Atlas Avatar Service.
- These are params Atlas uses for member avatars: 192x192, webp format, 0.8 quality
┆Issue is synchronized with this Asana task by Unito