MPA

From the to-do list: MPA V1.0: post API integration

✔ Support for high res blurred header

Comments

Pierre henri Seylan on July 12, 2018:

As discussed previously, we need a solution for high resolution blurred headers.

Let's discuss and try to find the best possible solution, i can see the following solutions:

1. Generating the image on the server:
problem is it will not work for local collections

2. Generating the blurred header when creating the collection in the needed resolution and uploading it to the server as separate image:
This would need a new API request.

let me know what you think and if you think another approach is needed.

Karim Alabtakh on July 18, 2018:

The second approach is better but I have two points:
1- Maybe it will better to upload cropped image without blurring to the server since blur style maybe will be changed (also maybe it would be reused by web UI).
2- New api is not needed, only improvements for exists. so:
-add new column in server db for cropped image.
-improve create/edit pack request and add new parameter for cropped image.
That's it.

Karim Alabtakh on July 26, 2018:

After discussing it with web developer, I found that now the new api process and resize image on server side.  so we decided to keep  current API and upload one image in original size. the server will process it and save two variants of images (one for pack list and another one for pack detail).
But they have a question:
Does blurred background will be also used in pack detail web page?
if yes, then same api can be used for web and client (return 2 image url). because as they explained me, web browser auto download all images included in request.