Closed
Bug 740435
Opened 13 years ago
Closed 13 years ago
Uploaded Profile Photos Can Be Massive
Categories
(Websites :: mozillalabs.com, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: bensternthal, Assigned: jfong)
References
()
Details
See url
Looking at pre-existing profile pics, it looks like they are not re-sized on upload and we just render them as-is
Note this profile is pre-existing so it might be true that new photos are re-sized.
Are we able to generate then cache a thumbnail something like what "sorl-thumbnail" does?
Comment 1•13 years ago
|
||
would be good to test w/ a new profile pic -- it's possible that we now resize, but that we have legacy files in there.
Comment 2•13 years ago
|
||
https://mozillalabs.allizom.org/en-US/profile/IDztI0qHTiS2WXYPaPgI4nJBF2s/ is an example of a too-big profile photo which we should fix. (at least set size in HTML output)
Reporter | ||
Comment 3•13 years ago
|
||
tested on dev, uploaded photo does not resize
Comment 4•13 years ago
|
||
Commits pushed to master at https://github.com/mozilla/betafarm
https://github.com/mozilla/betafarm/commit/9e4698c41d5bc934433343f688db3650999fabf3
fixed file uploading resize; fix bug 740435
https://github.com/mozilla/betafarm/commit/0c7734677c7541be8ebeb92088a606a06afcc213
Merge pull request #41 from ednapiranha/bug740435
fixed file uploading resize; fix bug 740435
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 5•13 years ago
|
||
Confirmed size is now not huge but looks like we are not preserving aspect ratio so image can be skewed.
If this is easy, set width to 140 but preserve aspect ratio for height.
Check if PIL thumbnail does this automagically.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 6•13 years ago
|
||
PIL does not do this automatically, we actually have to run our own method to adjust the aspect ratio.
Assignee | ||
Comment 7•13 years ago
|
||
Ah correction - apparently the thumbnail command does it. Will apply a fix update
Comment 8•13 years ago
|
||
Commits pushed to master at https://github.com/mozilla/betafarm
https://github.com/mozilla/betafarm/commit/f209bca3bc8507406e22ae189b205b4e79108d14
fixed resize to maintain aspect ratio; fix bug 740435
https://github.com/mozilla/betafarm/commit/abad6427cb24cae2648d9b8bb0e71271f11b3363
Merge pull request #43 from ednapiranha/master
fixed resize to maintain aspect ratio; fix bug 740435
Updated•13 years ago
|
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → FIXED
Comment 9•13 years ago
|
||
Verified that very large images are resized appropriately for profile pictures.
Status: RESOLVED → VERIFIED
Reporter | ||
Updated•12 years ago
|
Component: Betafarm → mozillalabs.com
You need to log in
before you can comment on or make changes to this bug.
Description
•