Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add an admin check for the preview max setting #31938

Closed
wants to merge 3 commits into from

Conversation

szaimen
Copy link
Contributor

@szaimen szaimen commented Apr 12, 2022

Signed-off-by: szaimen szaimen@e.mail.de

@szaimen szaimen added enhancement 3. to review Waiting for reviews labels Apr 12, 2022
@szaimen szaimen added this to the Nextcloud 24 milestone Apr 12, 2022
@szaimen szaimen requested review from skjnldsv, a team, artonge and vanpertsch and removed request for a team April 12, 2022 08:40
@szaimen szaimen force-pushed the enh/noid/preview-max-setting-check branch from f751c30 to 3a17952 Compare April 12, 2022 08:42
core/js/setupchecks.js Outdated Show resolved Hide resolved
@blizzz blizzz mentioned this pull request Apr 13, 2022
@szaimen szaimen modified the milestones: Nextcloud 24, Nextcloud 25 Apr 13, 2022
@skjnldsv skjnldsv mentioned this pull request Aug 12, 2022
@skjnldsv

This comment was marked as resolved.

@skjnldsv skjnldsv mentioned this pull request Aug 18, 2022
This was referenced Aug 24, 2022
This was referenced Sep 6, 2022
@skjnldsv skjnldsv mentioned this pull request Sep 15, 2022
This was referenced Sep 20, 2022
@blizzz blizzz modified the milestones: Nextcloud 25, Nextcloud 26 Sep 22, 2022
@skjnldsv

This comment was marked as resolved.

@szaimen
Copy link
Contributor Author

szaimen commented Jan 25, 2023

@szaimen

This comment was marked as resolved.

@skjnldsv skjnldsv force-pushed the enh/noid/preview-max-setting-check branch 2 times, most recently from 5dbc704 to 20498f7 Compare January 26, 2023 08:55
@jancborchardt
Copy link
Member

Considering what @skjnldsv said:

We generate power of four, so 64, 256, 1024, 4096.
And we round up to the value above. #12166
1920x1080 would return a 4k image

I would say it makes sense to:

we add one extra step 2048 between 1k and 4k (1024, 2048 and 4096)

Especially since 1920*1080 is by far the most used resolution on desktop worldwide: https://gs.statcounter.com/screen-resolution-stats/desktop/worldwide
So we should cover that for sure, as on desktop that value would be most important to generate – especially as some others would also fall into that?


And the wording I would adjust additionally to what @Pytal said:

"Your max preview size settings are lower than 4K. Image previews may appear blurry to some users."

To this – mostly adjust "users" → "people" and specify the reason. Also, it should not be a warning but more of an "info"-level notice.

"Your max preview size settings are lower than 4K. Image previews may appear blurry to people using 4K screens."


Design team requested 4096, I adjusted the PR

Just for the record since there might have been a misunderstanding – it was not really a request, but based on @nimishavijay’s thumbs up on this comment, right? #31938 (comment)

@skjnldsv
Copy link
Member

I would say it makes sense to:

we add one extra step 2048 between 1k and 4k (1024, 2048 and 4096)

Especially since 1920*1080 is by far the most used resolution on desktop worldwide: gs.statcounter.com/screen-resolution-stats/desktop/worldwide So we should cover that for sure, as on desktop that value would be most important to generate – especially as some others would also fall into that?

No, this is very different from that PR and has been discussed/addressed before.
Feel free to handle this in another issue/PR 👍

Signed-off-by: szaimen <szaimen@e.mail.de>
@skjnldsv skjnldsv force-pushed the enh/noid/preview-max-setting-check branch from 20498f7 to 2bf389e Compare January 26, 2023 12:37
@blizzz blizzz mentioned this pull request Feb 1, 2023
@skjnldsv skjnldsv mentioned this pull request Feb 23, 2023
@blizzz blizzz mentioned this pull request Mar 7, 2023
@blizzz blizzz modified the milestones: Nextcloud 26, Nextcloud 27 Mar 9, 2023
This was referenced May 3, 2023
@blizzz blizzz mentioned this pull request May 17, 2023
@blizzz blizzz modified the milestones: Nextcloud 27, Nextcloud 28 May 23, 2023
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
@skjnldsv skjnldsv requested a review from a team July 10, 2023 17:38
@skjnldsv
Copy link
Member

Please let get this in

@skjnldsv skjnldsv removed the request for review from PVince81 September 1, 2023 12:22
@kesselb
Copy link
Contributor

kesselb commented Sep 1, 2023

Another setup check people complain about 😞

What's the rational to have a configuration option when you see a warning with a different value?

Picking a lower value for preview_max_x / preview_max_y is a common "trick" to reduce the disk usage for previews.

@skjnldsv skjnldsv mentioned this pull request Nov 1, 2023
@blizzz blizzz mentioned this pull request Nov 6, 2023
@szaimen
Copy link
Contributor Author

szaimen commented Nov 8, 2023

Conflicts

@szaimen szaimen closed this Nov 8, 2023
@szaimen szaimen deleted the enh/noid/preview-max-setting-check branch November 8, 2023 19:25
@szaimen szaimen removed this from the Nextcloud 28 milestone Nov 8, 2023
@jospoortvliet
Copy link
Member

The whole issue with some previews being bigger than the original (when it's HEIC) really shows it's not the right approach, I would say.

As it's meant to be a 'preview', it seems to make more sense to limit the size to something truly preview-territory like 1080P as Jan suggested and make sure viewers start loading the original after they loaded the preview. I believe the mobile apps already do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants