Title: ImageQuality API differ on IOS and Android: Use one scale for both · Issue #5474 · NativeScript/NativeScript · GitHub
Open Graph Title: ImageQuality API differ on IOS and Android: Use one scale for both · Issue #5474 · NativeScript/NativeScript
X Title: ImageQuality API differ on IOS and Android: Use one scale for both · Issue #5474 · NativeScript/NativeScript
Description: On IOS, Image-Source expects a number between 0.0 to 1.0 to specify the image quality. On Android, Image-Source expects a number netween 0 and 100. It brings up the situation developers have to use a platform-check if the want to get a J...
Open Graph Description: On IOS, Image-Source expects a number between 0.0 to 1.0 to specify the image quality. On Android, Image-Source expects a number netween 0 and 100. It brings up the situation developers have to use...
X Description: On IOS, Image-Source expects a number between 0.0 to 1.0 to specify the image quality. On Android, Image-Source expects a number netween 0 and 100. It brings up the situation developers have to use...
Opengraph URL: https://github.com/NativeScript/NativeScript/issues/5474
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ImageQuality API differ on IOS and Android: Use one scale for both","articleBody":"On IOS, Image-Source expects a number between 0.0 to 1.0 to specify the image quality.\r\nOn Android, Image-Source expects a number netween 0 and 100. \r\n\r\nIt brings up the situation developers have to use a platform-check if the want to get a JPG with 80% quality:\r\n\r\n```\r\n let quality = platformModule.isAndroid ? 80 : 0.8;\r\n return image.toBase64String(\"jpeg\", quality);\r\n```\r\n\r\nI'd suggest to use one scale for both platforms to have an more consistent API.\r\nWhat do you think?","author":{"url":"https://github.com/madmas","@type":"Person","name":"madmas"},"datePublished":"2018-02-27T16:18:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/5474/NativeScript/issues/5474"}
| 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:3d82d94c-422c-79b0-8cc1-093e2be5f440 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 91F0:36CDD4:1CBF2F:26A401:6A5FEB4D |
| html-safe-nonce | c2bec541f7279474bac0d2885db739d737c8afbf14f412c0964812070bbac735 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUYwOjM2Q0RENDoxQ0JGMkY6MjZBNDAxOjZBNUZFQjREIiwidmlzaXRvcl9pZCI6Ijc5ODE2NTA0NTMxMDAyMjc0MDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 91301af08545698cb6baa32da59e462d43c8a4ed6a21b52ccea3325f55d6055e |
| hovercard-subject-tag | issue:300696426 |
| 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/NativeScript/5474/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f3e5ce20ae633db17448348eaf51d852ea48cb47ba406c5cc4b90b50ae383f5a/NativeScript/NativeScript/issues/5474 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f3e5ce20ae633db17448348eaf51d852ea48cb47ba406c5cc4b90b50ae383f5a/NativeScript/NativeScript/issues/5474 |
| og:image:alt | On IOS, Image-Source expects a number between 0.0 to 1.0 to specify the image quality. On Android, Image-Source expects a number netween 0 and 100. It brings up the situation developers have to use... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | madmas |
| hostname | github.com |
| expected-hostname | github.com |
| None | ba296ecd3a3521238fe43b3b3b08cc09207ddc21173e16ee656db03803de8e2b |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 31492490 |
| octolytics-dimension-repository_nwo | NativeScript/NativeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31492490 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/NativeScript |
| 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 | 6e50fb37e29e4aa0df6386cb485e58b0e3ca97ab |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width