Shrink profile pic

This commit is contained in:
Peter Stockings
2026-03-13 22:42:30 +11:00
parent e2d85f0a88
commit f7ce1c3fd6
3 changed files with 3 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ def profile():
try:
image = Image.open(io.BytesIO(file_data))
image = image.convert("RGB") # Ensure it's in RGB format
image.thumbnail((300, 300)) # Resize to a maximum of 300x300 pixels
image.thumbnail((200, 200)) # Resize to a maximum of 200x200 pixels
# Save the resized image to a buffer
buffer = io.BytesIO()

File diff suppressed because one or more lines are too long

View File

@@ -16,7 +16,7 @@
<div class="flex items-center justify-center mb-4">
<img src="{{ url_for('user.profile_image', user_id=current_user.id) }}" alt="Profile Picture"
class="w-44 h-44 rounded-full border object-cover shadow">
class="w-32 h-32 rounded-full border object-cover shadow">
</div>