User Pass
Home Sign Up Contact Log In
Forum > Discuss GLB Issues With Catch22 > NOT A BUG - CLOSED > Player avatars not uploading properly - coming out blurry - ISSUE DETERMINED NOT A BUG- #780
Page:
 
Ravenwood
offline
Link
 
When I go to upload a player picture (in this case, a jpeg, under 30kb) it comes out all fuzzy and blurry. The same image file will load perfectly fine as a custom equipment image - crystal clear.

Has the software for player avatars been changed?
Edited by Sirwin on Dec 19, 2011 12:35:16
Edited by IdRatherFlyFish on Nov 28, 2011 11:50:28
Edited by TruthHammer on Nov 26, 2011 22:29:10 (Added File #)
Edited by TruthHammer on Nov 26, 2011 22:25:18 (Not likely a bug)
 
alindyl
offline
Link
 
Don't know the cause but i assume these players are the ones you see as fuzzy:

http://goallineblitz.com/game/player.pl?player_id=1985762
http://goallineblitz.com/game/player.pl?player_id=2403744
http://goallineblitz.com/game/player.pl?player_id=2404500

When i view the info for the images, those are 75px by 75px. The clearer images are all larger images scaled down to 75 by 75.

For example this one http://goallineblitz.com/game/player_pic.pl?player_id=1985856 is 264px × 264px (scaled to 75px × 75px)

So perhaps you should resubmit the image in it's original larger size and see if the site will scale it down correctly on it's own. I remember seeing something like this crop up, maybe a year ago.
 
Ravenwood
offline
Link
 
Actually, it's the Johnny Walker avatar: http://goallineblitz.com/game/player.pl?player_id=1982989

I've used the same image for the player profile picture, and the custom equipment picture. The image is a jpeg, 189x189 pixels, 9.53kb. It uploads fine as the custom equipment picture, but look closely at the profile picture - it's like it's under water or something.
 
alindyl
offline
Link
 
It may have started that way but now it's 2.6 KB (2,662 bytes), 75px × 75px. Thats copied directly (or as directly as i can) from the view image source window in FF.

I'd try uploading it again perhaps. As i said, i recall this happening before a while ago (bug post should still be around i think)

Oh i was wrong, it was in the faq forum where it was last discussed. Maybe something here will help http://goallineblitz.com/game/forum_thread.pl?thread_id=4620630
 
Ravenwood
offline
Link
 
Yeah, that's the same phenomenon. (lol @ the last post in that thread.)

I wonder if the images are stored on different servers, since the custom gear images are fine, while the player profile pictures are blurred. (To say nothing of the recent troubles with the team and agent avatars.) Also, the player pics you referenced above used to be perfectly clear.

Guess I'll give it a few days and see if the server doesn't clear up its head cold!
 
TruthHammer
Lead Bugs Mod
offline
Link
 
I get different results when I right click on the two images and select "view image info" on the profile page and on the equipment page. The profile page says the image is a 75 X 75. The equipment image says it's a 189 X 189 scaled down to 75 X 75. That tells me the image is getting shrunk in 2 different ways. On the profile page, it's happening before it's sent to the browser. On the equipment page, it sends the full image to your browser and lets the browser shrink it to fit the page element. So the difference you're seeing is just the different shrinking methods. The easiest way to get around it is to shrink the image to 75 X 75 yourself, then upload it.

My thought is that this is not a bug, but I'll file it and let the other bugs mods weigh in.
 
Ali Khaman
offline
Link
 
This won't help a lot now since there are so many avatars out there that are already different sizes, but... as a general rule when scaling things, things end up a lot more focused and clear if the starting and ending resolutions factor out evenly. The digital standard is a factor of 8 which is why default screen resolutions and image sizes are numbers like 800x600, 1024x768, etc. 8 goes into every typical image resolution evenly and thus it'll scale down to any other standard resolution without having to do fancy math that can result in bleeding.

At issue here, most likely, is that when you upload an image it's getting scaled to 189x189 (not a factor of 8) and then that 189x189 is likely getting scaled again on the server for the player page (again, not a factor of 8 and 75 doesn't divide into 189 either). When you have a source image that doesn't divide evenly into the resulting image resolution, you end up with it making "estimates" on what the new pixel data should be based upon a small percent of the odd pixels against higher percent of the even ones. if it divides equally - the math just works out better.

Sooooo... since we're dealing with 189 and 75 here, there is no optimum number that matches exactly but to get the minimal amount of bleed, you want to start with a clear image that is 380, 760, or 1520 square. 380 / 2 = 190 (only one column and row of bleed) and 380 / 5 = 76 (again, only one column and row of bleed). The reason some images are going to end up worse than others is that some initial resolutions are going to factor into these bizarre numbers worse than others.

Not a bug, just poor planning/math.

Edited by Ali Khaman on Nov 27, 2011 03:41:36
 
Link
 
Not a bug - might be a good suggestion
 
TheGreatPuma
offline
Link
 
Originally posted by TruthHammer
I get different results when I right click on the two images and select "view image info" on the profile page and on the equipment page. The profile page says the image is a 75 X 75. The equipment image says it's a 189 X 189 scaled down to 75 X 75. That tells me the image is getting shrunk in 2 different ways. On the profile page, it's happening before it's sent to the browser. On the equipment page, it sends the full image to your browser and lets the browser shrink it to fit the page element. So the difference you're seeing is just the different shrinking methods. The easiest way to get around it is to shrink the image to 75 X 75 yourself, then upload it.

My thought is that this is not a bug, but I'll file it and let the other bugs mods weigh in.


I see the same issue, but why would this only happen on certain players? Nearly all of my players' avatars are larger files and all show the original file/size when you view them (see http://goallineblitz.com/game/player.pl?player_id=1506119 and http://goallineblitz.com/game/player_pic.pl?player_id=1506119 and just about every other player avatar on my page). It seems odd that his files appear to have been modified after he uploaded them.
 
Ravenwood
offline
Link
 
As an experiment, I uploaded an image that works fine for another player (Johnny Noxious - http://goallineblitz.com/game/player.pl?player_id=1985856 ) to Johnny Walker's profile: http://goallineblitz.com/game/player.pl?player_id=1982989

The image has always worked fine for Johnny Noxious (and is still clear) but for whatever reason, it's showing up all fuzzy for Johnny Walker.

Are the two players on different servers?
 
Ali Khaman
offline
Link
 
What you're seeing there is that when you uploaded Johnny Noxious it was before they added ImageMagic (or whatever post uploading image processor they are using). At some point before I started, which was 95 game days ago but more recently than you uploaded Noxious' picture they changed the upload process. Previously when you uploaded an image, no processing was done and the image was stored full size:

http://goallineblitz.com/game/player.pl?player_id=1985856

When it was viewed on a page, the HTML and or CSS scaled the image down to a specific size.

At some point they added ImageMagic (or whatever) to scale the images down. (Probably because people were bitching that their player pages took months to load because they uploaded 2000x2000 pixel bitmaps or something lol)

So when you upload the image - the image goes from this:
Noxious' old, unprocessed avatar: http://goallineblitz.com/game/player_pic.pl?player_id=1985856
to the new processed avatar: http://goallineblitz.com/game/player_pic.pl?player_id=1982989

The quality setting on the image resize software can be adjusted to balance quality and size. Since avatars don't really matter in the grand scheme of things, they probably have it set to a very low quality setting to make the images load much faster. It saves bandwidth and server load. Plus, pages probably load 10 to 20 times faster if you have a lot of players.

I'm way to lazy to go through the update history, but somewhere between 100 and 250 (or so) game days ago, they added post upload image processing.
 
Ravenwood
offline
Link
 
Originally posted by Ali Khaman
What you're seeing there is that when you uploaded Johnny Noxious it was before they added ImageMagic (or whatever post uploading image processor they are using). At some point before I started, which was 95 game days ago but more recently than you uploaded Noxious' picture they changed the upload process. Previously when you uploaded an image, no processing was done and the image was stored full size:

http://goallineblitz.com/game/player.pl?player_id=1985856

When it was viewed on a page, the HTML and or CSS scaled the image down to a specific size.

At some point they added ImageMagic (or whatever) to scale the images down. (Probably because people were bitching that their player pages took months to load because they uploaded 2000x2000 pixel bitmaps or something lol)

So when you upload the image - the image goes from this:
Noxious' old, unprocessed avatar: http://goallineblitz.com/game/player_pic.pl?player_id=1985856
to the new processed avatar: http://goallineblitz.com/game/player_pic.pl?player_id=1982989

The quality setting on the image resize software can be adjusted to balance quality and size. Since avatars don't really matter in the grand scheme of things, they probably have it set to a very low quality setting to make the images load much faster. It saves bandwidth and server load. Plus, pages probably load 10 to 20 times faster if you have a lot of players.

I'm way to lazy to go through the update history, but somewhere between 100 and 250 (or so) game days ago, they added post upload image processing.


That is indeed very helpful - thank you. I'm going to try re-sizing the image to 380, to see if that scales better.

Interesting that the 189 x 189 image still uploads fine on his custom gear, though. I guess they're not using the same upload process for those images.
 
Ravenwood
offline
Link
 
Well, I give up. I tried re-sizing it to 380 x 380, and it still came out fuzzy. Tried again at 150 x 150, with the exact same result. Whatever software they're using, it's scaling it down to 75 x 75 and losing all resolution from the original image.
 
TheGreatPuma
offline
Link
 
Ali is right - in fact it states it when you hit the upload page now, it's a stupid change. The odd thing is why is it not resizing the equipment as it states in that upload form that it will resize those as well:

Originally posted by custom eq upload pic

Custom equipment pictures will be resized to 75x75 pixels, so it is best if the original image is already 75x75.

Files should be JPG, GIF, or PNG, and must be smaller than 30kb.

So really the bug is that for some reason custom Eq is not being resized.

 
Ravenwood
offline
Link
 
Originally posted by TheGreatPuma

So really the bug is that for some reason custom Eq is not being resized.



Strangely, I can upload a GIF file to his player profile, that doesn't re-size to 75 x 75. Have a look:
http://goallineblitz.com/game/player.pl?player_id=1982989

It's just jpegs that are coming through all muddled.
 
Page:
 


You are not logged in. Please log in if you want to post a reply.