-
Notifications
You must be signed in to change notification settings - Fork 18
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
Increasing max picture size for player icons. #75
base: master
Are you sure you want to change the base?
Increasing max picture size for player icons. #75
Conversation
I like the changes, but I am not convinced of the 900px limit. It seems much too high to me. I propose to change the limit to 450px instead. |
That's an argument I didn't saw. My argument is that users may loose the original picture and then only have a low scaled Picture.png (I was wrong it is actually named "Portrait.png"). |
This is an interesting perspective, but picture archival is not in the scope of a game engine. |
(200px BigIcon.png, 100 Kibibytes; 450px Picture.png)
f53fb64
to
a351b30
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The frontend should also finally use the same file size check like the network system, otherwise you can set a BigIcon that doesn't actually get used.
Grp.Delete(C4CFN_BigIcon); | ||
{ | ||
Grp.Delete(C4CFN_BigIcon); | ||
LogF("OptimizeStandalone: BigIcon is too large! Maximum allowed file size is %" PRId32 " Kibibytes. Deleting BigIcon.png for distribution of the player file in network.", C4NetResMaxBigicon); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be translated.
6a87254
to
f8df7d1
Compare
e8594e9
to
5b1d4c0
Compare
576e440
to
ce836d5
Compare
bcedb99
to
a6dc0ab
Compare
8956ef7
to
d712f3f
Compare
900px450px max as the file is only used locally and has no effect on resource loading over the network.Due to the resize of BigIcon.png the maximum filesize for BigIcon was raised from 20 to 100 Kibibytes. Testing the limit with converting a noisy flower meadow (1200 * 901px @ 2 MBytes original, set as profile picture), BigIcon size was about 65 KBytes.