{ "id": "61881", "key": "TIMOB-1249", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T02:47:41.000+0000", "created": "2011-04-15T02:47:40.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "imageview", "ios", "width" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:15:25.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}
\nvar media = thumbnails.item(0).getAttribute(\"url\");\n                    Titanium.API.log( \"thumbnails \" + media );\n                    //db.getImage( media );\n                    var img = Ti.UI.createImageView({\n                        url:media,\n                        left:5,\n                        width:60, height:60\n                    });\n                    row.add(img);\n\n                    //db.getImage( media );\n                    var img2 = Ti.UI.createImageView({\n                        image :media,\n                        right:5,\n                        width:60,  height:60\n                    });\n                    row.add(img2);\n
\n

If i use url as parameter of ImageView , Titanium renders it as\na rect with the long side 60.
\nelse if i use image, i view a 60x60 image

{html}", "attachment": [ { "id": "17958", "filename": "schermata-2010-07-08-a-163420.png", "author": { "name": "maurobraggio", "key": "maurobraggio", "displayName": "Mauro Braggio", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:47:41.000+0000", "size": 67360, "mimeType": "image/png" } ], "flagged": false, "summary": "ImageView width and height: image and url difference", "creator": { "name": "maurobraggio", "key": "maurobraggio", "displayName": "Mauro Braggio", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "maurobraggio", "key": "maurobraggio", "displayName": "Mauro Braggio", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "125164", "author": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "body": "{html}

'url:' is deprectated. so 'image:' is the one to use now. ;)

{html}", "updateAuthor": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "created": "2011-04-15T02:47:41.000+0000", "updated": "2011-04-15T02:47:41.000+0000" }, { "id": "125165", "author": { "name": "maurobraggio", "key": "maurobraggio", "displayName": "Mauro Braggio", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I know, but url has better \"image rendering\" than image

{html}", "updateAuthor": { "name": "maurobraggio", "key": "maurobraggio", "displayName": "Mauro Braggio", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:47:41.000+0000", "updated": "2011-04-15T02:47:41.000+0000" }, { "id": "125166", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Invalid. url and image properties on\nan imageview are equivalent, and one is specifically deprecated (as\nin, \"don't use it.\")

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:47:42.000+0000", "updated": "2011-04-15T02:47:42.000+0000" }, { "id": "410957", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T23:15:25.000+0000", "updated": "2017-03-09T23:15:25.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }