<p>User <a href="https://www.openstreetmap.org/user/Angkor%20Wat%20Putt" rel="nofollow">https://www.openstreetmap.org/user/Angkor%20Wat%20Putt</a> has somehow managed to upload a huge 4160x3120 pixel avatar image. While this isn't shown on the user profile page, the user API call <a href="https://api.openstreetmap.org/api/0.6/user/1000005" rel="nofollow">https://api.openstreetmap.org/api/0.6/user/1000005</a> returns an img URL for the original size. This may seriously screw up tools like OSMCha or iD which want to show a small avatar image next to a user.</p>
<div class="highlight highlight-text-xml"><pre><?<span class="pl-ent">xml</span><span class="pl-e"> version</span>=<span class="pl-s"><span class="pl-pds">"</span>1.0<span class="pl-pds">"</span></span><span class="pl-e"> encoding</span>=<span class="pl-s"><span class="pl-pds">"</span>UTF-8<span class="pl-pds">"</span></span>?>
<<span class="pl-ent">osm</span> <span class="pl-e">version</span>=<span class="pl-s"><span class="pl-pds">"</span>0.6<span class="pl-pds">"</span></span> <span class="pl-e">generator</span>=<span class="pl-s"><span class="pl-pds">"</span>OpenStreetMap server<span class="pl-pds">"</span></span>>
  <<span class="pl-ent">user</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>1000005<span class="pl-pds">"</span></span> <span class="pl-e">display_name</span>=<span class="pl-s"><span class="pl-pds">"</span>Angkor Wat Putt<span class="pl-pds">"</span></span> <span class="pl-e">account_created</span>=<span class="pl-s"><span class="pl-pds">"</span>2012-10-23T21:55:57Z<span class="pl-pds">"</span></span>>
    <<span class="pl-ent">description</span>>Angkor Wat Putt is a fantastic and fun, 14 hole Miniature Golf Course in Siem Reap.Come and knock a ball under and around 9 accurate replicas of the world famous Angkor Temples. Including Angkor Wat, Ta Prohm, Bayon, Banteay Srei, Preah Vihear and the Terrace of the Elephants.Perfect for all the family, young and old. If you need a break from the actual temples to have a bit of fun then do it guilt free.The course is set in a large, well maintained garden with a bar and seating area. So come and spend a few hours and relax with us.</<span class="pl-ent">description</span>>
    <<span class="pl-ent">contributor-terms</span> <span class="pl-e">agreed</span>=<span class="pl-s"><span class="pl-pds">"</span>true<span class="pl-pds">"</span></span>/>
    <<span class="pl-ent">img</span> <span class="pl-e">href</span>=<span class="pl-s"><span class="pl-pds">"</span>https://api.openstreetmap.org/attachments/users/images/001/000/005/original/efd82f5510d48e4616c3feeb5b0712f1.jpg<span class="pl-pds">"</span></span>/>
    <<span class="pl-ent">roles</span>>
    </<span class="pl-ent">roles</span>>
    <<span class="pl-ent">changesets</span> <span class="pl-e">count</span>=<span class="pl-s"><span class="pl-pds">"</span>6<span class="pl-pds">"</span></span>/>
    <<span class="pl-ent">traces</span> <span class="pl-e">count</span>=<span class="pl-s"><span class="pl-pds">"</span>0<span class="pl-pds">"</span></span>/>
    <<span class="pl-ent">blocks</span>>
      <<span class="pl-ent">received</span> <span class="pl-e">count</span>=<span class="pl-s"><span class="pl-pds">"</span>0<span class="pl-pds">"</span></span> <span class="pl-e">active</span>=<span class="pl-s"><span class="pl-pds">"</span>0<span class="pl-pds">"</span></span>/>
    </<span class="pl-ent">blocks</span>>
  </<span class="pl-ent">user</span>>
</<span class="pl-ent">osm</span>>
</pre></div>
<p><a href="https://api.openstreetmap.org/attachments/users/images/001/000/005/original/efd82f5510d48e4616c3feeb5b0712f1.jpg" rel="nofollow">https://api.openstreetmap.org/attachments/users/images/001/000/005/original/efd82f5510d48e4616c3feeb5b0712f1.jpg</a></p>
<p>There are 2 questions here:</p>
<ul>
<li>Would it make sense to limit the avatar image size to something reasonable during upload?</li>
<li>Should we return a "large" image in the /api/0.6/user call, rather than the original image size?</li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/1923">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABWnLTNnyyZ-qQhXEoAj8AAttZwtrusnks5uD8PIgaJpZM4VF92_">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABWnLcWx82o4F-Czqh-Hq2taHIT8UWeWks5uD8PIgaJpZM4VF92_.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/openstreetmap-website","title":"openstreetmap/openstreetmap-website","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/openstreetmap-website"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"User API call returns image in original size (#1923)"}],"action":{"name":"View Issue","url":"https://github.com/openstreetmap/openstreetmap-website/issues/1923"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/1923",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/1923",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "User API call returns image in original size (#1923)",
"sections": [
{
"text": "",
"activityTitle": "**mmd**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@mmd-osm",
"facts": [
{
"name": "Repository: ",
"value": "openstreetmap/openstreetmap-website"
},
{
"name": "Issue #: ",
"value": 1923
}
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"openstreetmap/openstreetmap-website\",\n\"issueId\": 1923,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"openstreetmap/openstreetmap-website\",\n\"issueId\": 1923\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/openstreetmap/openstreetmap-website/issues/1923"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 353885631\n}"
}
],
"themeColor": "26292E"
}
]</script>