You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ac...@apache.org on 2017/06/09 06:22:28 UTC

[07/12] incubator-weex git commit: * [ios] parse quality in attributes

* [ios] parse quality in attributes


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/8a88b88f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/8a88b88f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/8a88b88f

Branch: refs/heads/0.14-dev
Commit: 8a88b88fd11afc6c8b0e18899a102e30d73df449
Parents: 92c2de5
Author: acton393 <zh...@gmail.com>
Authored: Tue Jun 6 17:37:35 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Tue Jun 6 17:37:35 2017 +0800

----------------------------------------------------------------------
 ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8a88b88f/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
index 66148c6..5c6cd05 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
@@ -76,7 +76,12 @@ static dispatch_queue_t WXImageUpdateQueue;
         [self configPlaceHolder:attributes];
         _resizeMode = [WXConvert UIViewContentMode:attributes[@"resize"]];
         [self configFilter:styles];
-        _imageQuality = [WXConvert WXImageQuality:styles[@"quality"]];
+        if (styles[@"quality"]) {
+            _imageQuality = [WXConvert WXImageQuality:styles[@"quality"]];
+        }
+        if (attributes[@"quality"]) {
+            _imageQuality = [WXConvert WXImageQuality:attributes[@"quality"]];
+        }
         _imageSharp = [WXConvert WXImageSharp:styles[@"sharpen"]];
         _imageLoadEvent = NO;
         _imageDownloadFinish = NO;