Within the parent task the CommonsFileControl was introduced to allow to select image files from commons. When a file is selected, its source file url is stored as URL string in the config. The source file is commonly not optimised for small size and different density screens.
This task is to solve that and use optimised images in desktop and mobile for the Community updates banner. Also there are no size constraints in terms of selecting the image so it could look pretty bad for landscape and portrait proportions. See:
Alternatives for showing optimized images
- Request thumbnail url in the API request of the component and store two urls, eg: 1.5x and 2x
- Store just the file title and retrieve the approrpiate image urls when rendering the module in the server (would probably require caching)
- Store just the file title and try to generate the thumbnail URLs in the client
- By doing string concatenation of the known parts
- By doing a request to the API
Acceptance criteria
- Each platform (mobile, desktop) gets an optimized version of the image
- Some image size/proportion is enforced, tbd






