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

Allow rendering previews for larger image-files (up to 20MB) by default #315

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

MoonlightWave-12
Copy link
Contributor

@MoonlightWave-12 MoonlightWave-12 commented Nov 27, 2023

The file-size of images with a resolution of 3840x2160 (or higher) can be considerably larger than the current size-limit of 10MB, if they are in lossless formats, such as PNG.

Videogame-screenshots made on a 4K-display would be an example of a common source for such images.


Many of the videogame-screenshots which i usually have are around 11-12 MB as a PNG.

I generated a few noise-images (with an alpha-channel) for finding a good upper limit:
Those were about 17,8 MB to 19,7 MB in size, both as PNG and losslessly compressed WebP.

So, i assume that 20 MB will probably not be reached in practice, except with 8K-images, which are probably still rare.

The file-size of images with a resolution of 3840x2160 (or higher) can be considerably larger than the current size-limit of 10MB, if they are in lossless formats, such as PNG.

Videogame-screenshots made on a 4K-display would be an example of a common source for such images.
@ThomasWaldmann ThomasWaldmann merged commit 36d882d into bepasty:master Nov 27, 2023
6 checks passed
@ThomasWaldmann
Copy link
Contributor

Thanks for the PR.

Yeah, considering that might be a popular use case, our defaults should allow that.

@MoonlightWave-12 MoonlightWave-12 deleted the patch-1 branch November 27, 2023 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants