LANThrax
Username: Password:  
Sign In
Remember me
Sign Up Now
Forgot Password

Faster page loads...but

Last seen 20-May-13 17:11:49
Level 24
Generale d'Armata+
LANThrax Extremist (90 straight daily logins)
970
Get 10/10 in Trivia 3 TimesGet 10/10 in Trivia 6 TimesGet 10/10 in Trivia 9 TimesLog in everyday for 30 consecutive daysLog in everyday for 60 consecutive days50 Boxart GuessesLog in everyday for 90 consecutive days100 Boxart Guesses150 Boxart GuessesSolve the code breakers puzzle 25 timesDonate at least €14 to the LANThrax causeSolve the code breakers puzzle 50 timesSolve the code breakers puzzle 75 timesComplete the sticker albumIncorrectly predict the outcome of the voting game 15 times since 24-OCT-2011Vote like the majority 25 times since 24-OCT-2011Vote 50 times since 24-OCT-2011Vote against the trend 25 times since 24-OCT-2011Correctly predict the outcome of the voting game 40 times since 24-OCT-2011Get suggested polls approved 25 times since 24-OCT-2011

I was thinking of a way to make LANThrax pages load faster by decreasing the server processing power required for the realtime generation of avatars. This would be particularly useful on pages where there are comments by multiple members.

This is how it currently works. When a page requests a certain avatar picture to be shown, instead of calling the picture directly, it calls a special thumbnailer page and passes the name of the original picture as a parameter. This thumbnailer page then fetches the picture (server side), shrinks it according to the specified dimensions and posts the resulting thumbnail to the browser. This saves on bandwidth but increases server load. It works like that for JPGs and PNGs but it does not do that for GIFs. The reason is that when a GIF is resized programmatically, the animation is lost. Therefore in the case of GIFs, the whole picture is posted to the browser and the resizing is done client side. Not very efficient, ay?

So, I was thinking of updating the avatars to make them more efficient. Recently I discovered a technique that fetches a pre made picture thumbnail of a specific size and if it does not find it, it creates the thumbnail on the fly and saves the new thumbnail for future use. I have already tested it successfully on the list of boxarts in the boxarts minigame. Not sure if anyone noticed the speed difference.

But here is the catch. If I use this technique it will mean the end of animated avatars. This does not seem to be a problem for FaceBook since they don't allow animated Gifs as avatars. Besides, there were recent occasions where some uploaded animated gifs were giving people epileptic fits.

While I am at it I was thinking of restricting avatars to 1:1 aspect ratio, that is, avatars will always be squarish. The idea is to have more consistent looking forum/comments pages. Again, this does not seem to be a problem with FaceBook. I would, of course, provide ways for the users to select which part of tehir original upload they want to be included in the square avatar. I would probably use something like the plugin below (I have not tested it yet):

http://deepliquid.com/projects/Jcrop/demos.php?demo=thumbnail

Any thoughts?

Edited: April 14, 2012 13:22:35
1  2 Next
Last seen 20-May-13 23:23:05
Level 20
Field Marshall
LANThrax Extremist (90 straight daily logins)
202
Log in everyday for 30 consecutive daysLog in everyday for 60 consecutive daysLog in everyday for 90 consecutive daysVote like the majority 25 times since 24-OCT-2011Solve the code breakers puzzle 25 timesIncorrectly predict the outcome of the voting game 15 times since 24-OCT-2011Complete the sticker albumVote 50 times since 24-OCT-2011Correctly predict the outcome of the voting game 40 times since 24-OCT-2011Solve the code breakers puzzle 50 times10 confirmed bug findsVote against the trend 25 times since 24-OCT-201150 Boxart Guesses100 Boxart GuessesSolve the code breakers puzzle 75 times150 Boxart Guesses20 confirmed bug finds

In fact yesterday I noticed that the loading time for a new box art to load was indeed fast.

Osprey likes this post
Last seen 20-May-13 19:09:52
Level 16
генера́л-майо́р
(Major General)
LANThrax Extremist (90 straight daily logins)
269
Log in everyday for 30 consecutive daysLog in everyday for 60 consecutive daysVote like the majority 25 times since 24-OCT-2011Vote 50 times since 24-OCT-2011Incorrectly predict the outcome of the voting game 15 times since 24-OCT-2011Correctly predict the outcome of the voting game 40 times since 24-OCT-2011Log in everyday for 90 consecutive days10 confirmed bug findsComplete the sticker albumVote against the trend 25 times since 24-OCT-201120 confirmed bug finds

But we will crop it aye?

Last seen 20-May-13 17:11:49
Level 24
Generale d'Armata+
LANThrax Extremist (90 straight daily logins)
970
Get 10/10 in Trivia 3 TimesGet 10/10 in Trivia 6 TimesGet 10/10 in Trivia 9 TimesLog in everyday for 30 consecutive daysLog in everyday for 60 consecutive days50 Boxart GuessesLog in everyday for 90 consecutive days100 Boxart Guesses150 Boxart GuessesSolve the code breakers puzzle 25 timesDonate at least €14 to the LANThrax causeSolve the code breakers puzzle 50 timesSolve the code breakers puzzle 75 timesComplete the sticker albumIncorrectly predict the outcome of the voting game 15 times since 24-OCT-2011Vote like the majority 25 times since 24-OCT-2011Vote 50 times since 24-OCT-2011Vote against the trend 25 times since 24-OCT-2011Correctly predict the outcome of the voting game 40 times since 24-OCT-2011Get suggested polls approved 25 times since 24-OCT-2011

Aye, sir!

So no more pictures of your chest when you upload a portrait of yourself.

Last seen 20-May-13 19:09:52
Level 16
генера́л-майо́р
(Major General)
LANThrax Extremist (90 straight daily logins)
269
Log in everyday for 30 consecutive daysLog in everyday for 60 consecutive daysVote like the majority 25 times since 24-OCT-2011Vote 50 times since 24-OCT-2011Incorrectly predict the outcome of the voting game 15 times since 24-OCT-2011Correctly predict the outcome of the voting game 40 times since 24-OCT-2011Log in everyday for 90 consecutive days10 confirmed bug findsComplete the sticker albumVote against the trend 25 times since 24-OCT-201120 confirmed bug finds

Last seen 20-May-13 17:11:49
Level 24
Generale d'Armata+
LANThrax Extremist (90 straight daily logins)
970
Get 10/10 in Trivia 3 TimesGet 10/10 in Trivia 6 TimesGet 10/10 in Trivia 9 TimesLog in everyday for 30 consecutive daysLog in everyday for 60 consecutive days50 Boxart GuessesLog in everyday for 90 consecutive days100 Boxart Guesses150 Boxart GuessesSolve the code breakers puzzle 25 timesDonate at least €14 to the LANThrax causeSolve the code breakers puzzle 50 timesSolve the code breakers puzzle 75 timesComplete the sticker albumIncorrectly predict the outcome of the voting game 15 times since 24-OCT-2011Vote like the majority 25 times since 24-OCT-2011Vote 50 times since 24-OCT-2011Vote against the trend 25 times since 24-OCT-2011Correctly predict the outcome of the voting game 40 times since 24-OCT-2011Get suggested polls approved 25 times since 24-OCT-2011

@B.Theuma: You are one of the few members with an animated avatar. So if it is no problem for you that animated avatars stop working, then I will proceed with the update.

Last seen 20-May-13 23:23:05
Level 20
Field Marshall
LANThrax Extremist (90 straight daily logins)
202
Log in everyday for 30 consecutive daysLog in everyday for 60 consecutive daysLog in everyday for 90 consecutive daysVote like the majority 25 times since 24-OCT-2011Solve the code breakers puzzle 25 timesIncorrectly predict the outcome of the voting game 15 times since 24-OCT-2011Complete the sticker albumVote 50 times since 24-OCT-2011Correctly predict the outcome of the voting game 40 times since 24-OCT-2011Solve the code breakers puzzle 50 times10 confirmed bug findsVote against the trend 25 times since 24-OCT-201150 Boxart Guesses100 Boxart GuessesSolve the code breakers puzzle 75 times150 Boxart Guesses20 confirmed bug finds

Of course it is no problem  In fact it's time for a new avatar, since this one is getting a bit old.

Edited: April 14, 2012 10:19:32
Last seen 20-May-13 19:56:29
Level 5
Sergeant
LANThrax Loyalist (30 straight daily logins)
68
Vote like the majority 25 times since 24-OCT-2011Incorrectly predict the outcome of the voting game 15 times since 24-OCT-2011Vote 50 times since 24-OCT-2011Solve the code breakers puzzle 25 timesCorrectly predict the outcome of the voting game 40 times since 24-OCT-2011Log in everyday for 30 consecutive days

Some forums also have a pre-determined set of avatars which are drawn for their users by lot - don't know if that makes any difference processing-wise

Last seen 20-May-13 17:11:49
Level 24
Generale d'Armata+
LANThrax Extremist (90 straight daily logins)
970
Get 10/10 in Trivia 3 TimesGet 10/10 in Trivia 6 TimesGet 10/10 in Trivia 9 TimesLog in everyday for 30 consecutive daysLog in everyday for 60 consecutive days50 Boxart GuessesLog in everyday for 90 consecutive days100 Boxart Guesses150 Boxart GuessesSolve the code breakers puzzle 25 timesDonate at least €14 to the LANThrax causeSolve the code breakers puzzle 50 timesSolve the code breakers puzzle 75 timesComplete the sticker albumIncorrectly predict the outcome of the voting game 15 times since 24-OCT-2011Vote like the majority 25 times since 24-OCT-2011Vote 50 times since 24-OCT-2011Vote against the trend 25 times since 24-OCT-2011Correctly predict the outcome of the voting game 40 times since 24-OCT-2011Get suggested polls approved 25 times since 24-OCT-2011

We could assign automatic avatars for members who do not provide one and then they can choose to change it if they want. I was thinking of the troll avatars. That would be a good "encouragement" to make them upload something. Especially if you get the "Forever Alone" one!

Edited: April 14, 2012 12:36:05
B.Theuma likes this post
Last seen 20-May-13 19:09:52
Level 16
генера́л-майо́р
(Major General)
LANThrax Extremist (90 straight daily logins)
269
Log in everyday for 30 consecutive daysLog in everyday for 60 consecutive daysVote like the majority 25 times since 24-OCT-2011Vote 50 times since 24-OCT-2011Incorrectly predict the outcome of the voting game 15 times since 24-OCT-2011Correctly predict the outcome of the voting game 40 times since 24-OCT-2011Log in everyday for 90 consecutive days10 confirmed bug findsComplete the sticker albumVote against the trend 25 times since 24-OCT-201120 confirmed bug finds

It woudl lower down the website standard for visiotors.. 

Last seen 20-May-13 23:45:49
Level 11
First Lieutenant
LANThrax Extremist (90 straight daily logins)
55
Log in everyday for 30 consecutive daysLog in everyday for 60 consecutive daysLog in everyday for 90 consecutive daysDonate at least €14 to the LANThrax cause50 Boxart GuessesComplete the sticker albumVote like the majority 25 times since 24-OCT-2011Vote 50 times since 24-OCT-2011Correctly predict the outcome of the voting game 40 times since 24-OCT-2011Incorrectly predict the outcome of the voting game 15 times since 24-OCT-2011Vote against the trend 25 times since 24-OCT-2011Solve the code breakers puzzle 25 times100 Boxart Guesses

Seems like a good idea. Gotta ask the members with GIF avatars tho. It's not the end of the world if you can't upload animated avatars ^^

1  2 Next


You can only post questions and replies when you are logged in. You can enlist for free by clicking here.
Page generated in 3.557 seconds