You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by GitBox <gi...@apache.org> on 2020/03/16 10:27:47 UTC

[GitHub] [incubator-weex] e020120 opened a new issue #3171: [Android]Image组件图片保存模糊

e020120 opened a new issue #3171: [Android]Image组件图片保存模糊
URL: https://github.com/apache/incubator-weex/issues/3171
 
 
   在官方文档中,保存图片的唯一方式就是通过Image组件调用一个save方法来实现,但是保存下来的图片的尺寸却和原图有差异,但该问题只针对Android机型指出。
   
   这里用一个假设来还原图片保存模糊的场景,首先以原图720*1280像素的图片作为Image组件的src,然后将Image组件的宽高设定到一个较小的值,比如180*255像素(尽管可能不是等比例缩放),那么在调用Image组件的save方法后,保存在手机中的这张图片的像素并不是原图的大小,可能是比180*255像素大那么一点的图片,因此造成了图片的质量发生变化而导致的图片模糊问题。
   
   实际上,在weex页面中的Image组件在某些情况下不可能将宽度大于750像素的图片以1:1的比例放置在页面中,所以Image组件的宽度一定会是小于或者等于原图的宽高大小,而如果要将这张图片保存到手机相册,那么一定会选择一张与原图大小差不多或是至少能够辨认清楚的图片,所以提出此问题,希望能够改进Image组件对于保存图片的效果。
   
   除此之外,在某些Android系统中,保存图片会偶现一次保存两张图片的情况,希望能够提供一个解决方案。

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-weex] bobSir commented on issue #3171: [Android]Image组件图片保存模糊

Posted by GitBox <gi...@apache.org>.
bobSir commented on issue #3171: [Android]Image组件图片保存模糊
URL: https://github.com/apache/incubator-weex/issues/3171#issuecomment-599861320
 
 
   在0.28.0以前加载出来的图片都是模糊的

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-weex] bobSir removed a comment on issue #3171: [Android]Image组件图片保存模糊

Posted by GitBox <gi...@apache.org>.
bobSir removed a comment on issue #3171: [Android]Image组件图片保存模糊
URL: https://github.com/apache/incubator-weex/issues/3171#issuecomment-599861320
 
 
   在0.28.0以前加载出来的图片都是模糊的

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services