resize, cache and compress user uploaded images

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Summary

AFAIK, we aren't resizing, compressing or caching user uploaded images like the avatars and markdown attachments.

It hasn't been raised to me that this is true, nor false, but from some light debugging just under a month ago I believe it to be true. (Unless this is happening out of the scope of the rails app)

This is a performance issue for all users of the site as well as the servers and is a real strain on users with limited data contracts.

The impact of the size of avatars that aren't cached is a separate issue here: gitlab-ce#17427 /cc @connorshea The point that images can be too big for viewing is raised here: gitlab-ce#17581 and gitlab-ce#14999

Expected behavior

Images should be resized, compressed and cached.

Edited Sep 28, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading