Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图片模糊 #98

Open
wuWeiFeng2 opened this issue Jun 23, 2021 · 4 comments
Open

图片模糊 #98

wuWeiFeng2 opened this issue Jun 23, 2021 · 4 comments

Comments

@wuWeiFeng2
Copy link

保存一张来自安卓的高清图片,从相册里面选图的时候,orginaldata,却很小,但是图片却很清楚,发送到服务端的时候,展示到其他用户手机里的时候,图片很模糊

@lincf0912
Copy link
Owner

运行demo,选择图片,demo有分享功能,分享出去看是否模糊。

@wuWeiFeng2
Copy link
Author

好的 谢谢

@wuWeiFeng2
Copy link
Author

老铁,分享的模糊,压缩太严重了

@lincf0912
Copy link
Owner

如果选择原图,是不会压缩图片的。
如果要选择标清图,可以在初始化方法指定压缩参数

/// Compressed image size (isSelectOriginalPhoto=YES,Invalid),Default is 100 in KB, not recommend changed it.
/// 压缩标清图的大小(没有勾选原图的情况有效),默认为100 单位KB (只能压缩到接近该值的大小),不建议修改它
@property (nonatomic,assign) float imageCompressSize;

/// Compressed thumbnail image size,Default is 10 in KB, not recommend changed it. If it is 0, no thumbnails are generated.
/// 压缩缩略图的大小,默认为10 单位KB ,不建议修改它. 如果为0则不会生成缩略图
@property (nonatomic,assign) float thumbnailCompressSize;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants