Uploading animated gif to user card - No Animation

Here’s the fix :crocodile:

https://github.com/discourse/discourse/commit/a3831a700341c9b6d6031e204920d1f915828655

Was because the tempfile path we get from Rails was not including the extension of the filename and thus disabling all GIF support when optimizing the images.