Avatars taking long time to load / unexpected large images

(Dean Taylor) #1

Steps to Reproduce

  1. Load http://meta.discourse.org/ main page
  2. Notice that some of the avatars take a long time to load


Avatars to load pretty quickly within 3 seconds on 20Mbps connection.
Avatar files to be 25x25 pixel images when downloaded.


Some avatars loading over 2-8 second period, slowing drawing from top to bottom.
Some avatars are a lot larger than 25x25 pixels
Specific example for user 301 Moved Permanently - a 500x500 pixel image is loaded
301 Moved Permanently

(Jeff Atwood) #2

Hmm, yeah, we should not be serving 500x500 avatar images on the topic list. I can confirm it is this avatar, and indeed it is serving that file…

@zogstrip perhaps have a look?

(Régis Hanol) #3

@DeanMarkTaylor thanks for reporting that! I fixed it by reuploading the user’s avatar. Will check the log to find out what actually happened.

(Jeff Atwood) #4

We investigated and this was an artifact of rather old code at the time of avatar upload, so should be OK for all future cases.

(Jeff Atwood) #5