Title: [Android] Image header information gets reduced/lost · Issue #9 · NativeScript/sample-ImageUpload · GitHub
Open Graph Title: [Android] Image header information gets reduced/lost · Issue #9 · NativeScript/sample-ImageUpload
X Title: [Android] Image header information gets reduced/lost · Issue #9 · NativeScript/sample-ImageUpload
Description: When retrieving the imagesource like this: selection.forEach(function(asset) { asset.getImage().then(function(imagesource){ let folder = fs.knownFolders.documents(); let path = fs.path.join(folder.path, "Test"+counter+".jpg"); let saved ...
Open Graph Description: When retrieving the imagesource like this: selection.forEach(function(asset) { asset.getImage().then(function(imagesource){ let folder = fs.knownFolders.documents(); let path = fs.path.join(folder....
X Description: When retrieving the imagesource like this: selection.forEach(function(asset) { asset.getImage().then(function(imagesource){ let folder = fs.knownFolders.documents(); let path = fs.path.join(folder....
Opengraph URL: https://github.com/NativeScript/sample-ImageUpload/issues/9
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Android] Image header information gets reduced/lost","articleBody":"When retrieving the imagesource like this:\r\n\r\n```\r\nselection.forEach(function(asset) {\r\n asset.getImage().then(function(imagesource){\r\n let folder = fs.knownFolders.documents();\r\n let path = fs.path.join(folder.path, \"Test\"+counter+\".jpg\");\r\n let saved = imagesource.saveToFile(path, \"jpg\");\r\n \r\n if(saved){\r\n var task = sendImages(\"Image\"+counter+\".jpg\", path);\r\n }\r\n })\r\n});\r\n```\r\nthe image header information gets reduced, and the rotation information is lost.\r\nOur server is using the orientation information to rotate the image.\r\n\r\nWhen using the approach above to upload the image, the image header information looks like this:\r\n\r\n_Luminance Table:0\r\nChrominance Table:0_\r\n\r\nBut if I'm uploading the image directly using the asset.fileUri, the image header information looks like this:\r\n\r\n_Chrominance Table:0\r\nFlash:reserved\r\nEquip Model:D6603\r\nMetering Mode:Pattern\r\nDTDigSS:371350\r\nThumbnail Compression:6\r\nDTSubsec:371350\r\nPixXDim:3840\r\nFocalLength:4,6\r\nResolution Unit:2\r\nY Resolution:72/1\r\nThumbnail ResolutionX:72/1\r\nThumbnail ResolutionY:72/1\r\nExposure Bias:0/3\r\nSoftware Used:23.5.A.1.291_6_f1000010\r\nDTOrig:2016:12:22 15:17:56\r\nOrientation:6\r\nThumbnail Orientation:6\r\nISO Speed:ISO-80\r\nJPEG InterFormat:11790\r\nExposure Time:0,03\r\nJPEG InterLength:5928\r\nDate Time:2016:12:22 15:17:56\r\nThumbnail Data:255\r\nDTOrigSS:371350\r\nMaker Note:-\r\nPixYDim:2160\r\nVer:-\r\nFPXVer:-\r\nEquip Make:Sony\r\nX Resolution:72/1\r\nCompConfig:-\r\nYCbCr Positioning:1\r\nF-Number:F/2\r\nThumbnail ResolutionUnit:2\r\nLuminance Table:0\r\nLightSource:unknown\r\nShutter Speed:1/32\r\nColorSpace:1\r\nDTDigitized:2016:12:22 15:17:56_\r\n\r\nIs there a way to maintain the header information, or at least the orientation property?","author":{"url":"https://github.com/gregersen79","@type":"Person","name":"gregersen79"},"datePublished":"2017-02-07T09:22:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/9/sample-ImageUpload/issues/9"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:28412bac-f599-c093-b7d7-1852d4a3f233 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8AFA:3FC493:221CE86:3147674:6A58E9F5 |
| html-safe-nonce | 6f263d753977bf5edea80b736afc223e335a926ac8fc4371f1019ee811a0b39e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUZBOjNGQzQ5MzoyMjFDRTg2OjMxNDc2NzQ6NkE1OEU5RjUiLCJ2aXNpdG9yX2lkIjoiNzU5ODgwNDE0MjE0NTQ2NDgyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 01bc6137a2b514e7fc4849ff509483c8fa7ce9b2c15cb08f2666b3cab70aa620 |
| hovercard-subject-tag | issue:205830210 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/sample-ImageUpload/9/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3c6f60dea1e061389c9eee63f93d2f88957dead6ecd97fba10009e6a4d9a0654/NativeScript/sample-ImageUpload/issues/9 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3c6f60dea1e061389c9eee63f93d2f88957dead6ecd97fba10009e6a4d9a0654/NativeScript/sample-ImageUpload/issues/9 |
| og:image:alt | When retrieving the imagesource like this: selection.forEach(function(asset) { asset.getImage().then(function(imagesource){ let folder = fs.knownFolders.documents(); let path = fs.path.join(folder.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gregersen79 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/sample-ImageUpload git https://github.com/NativeScript/sample-ImageUpload.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 54722975 |
| octolytics-dimension-repository_nwo | NativeScript/sample-ImageUpload |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 54722975 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/sample-ImageUpload |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width