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

qmui_grayImage 对 scale > 1 的图片处理后内容错误 #938

Closed
Lee0820 opened this issue Mar 29, 2020 · 9 comments
Closed

qmui_grayImage 对 scale > 1 的图片处理后内容错误 #938

Lee0820 opened this issue Mar 29, 2020 · 9 comments
Labels

Comments

@Lee0820
Copy link

Lee0820 commented Mar 29, 2020

icon_tabbar_navigation_button@2x.png.zip
将这张图使用 qmui_grayImage 处理后图片内容被以 scale = 1 的方式渲染出来了。

另外 GIF 图要如何使用 qmui_grayImage 处理?

@Lee0820
Copy link
Author

Lee0820 commented Mar 29, 2020

发现有的图片没问题,有的图文处理完变成四分之一左上角的图了,这是什么情况

@MoLice
Copy link
Collaborator

MoLice commented Mar 30, 2020

这个 issue 看不懂在说什么问题,请重新整理表达再打开。

@MoLice MoLice closed this as completed Mar 30, 2020
@Lee0820
Copy link
Author

Lee0820 commented Mar 30, 2020

您可以把我上传的这张图放到demo里测试下qmui_grayImage这个方法,
Uploading 27ACBBC2DC257E66FB00B9E5C68353F2.png…
icon_app_version_header@2x.png.zip

@Lee0820 Lee0820 changed the title qmui_grayImage把图片置灰的方法问题 qmui_grayImage把图片置灰的方法问题1 Mar 30, 2020
@MoLice MoLice changed the title qmui_grayImage把图片置灰的方法问题1 qmui_grayImage 对 scale > 1 的图片处理后内容错误 Mar 30, 2020
@MoLice MoLice added bug and removed help wanted labels Mar 30, 2020
@MoLice MoLice reopened this Mar 30, 2020
@MoLice
Copy link
Collaborator

MoLice commented Mar 30, 2020

这是 qmui_grayImage 的 bug,下个版本会修复。

GIF 图不适用于 UIImage (QMUI) 里的方法,需要自行拆分帧图片处理完再封装成 GIF。

@Lee0820
Copy link
Author

Lee0820 commented Mar 30, 2020

目前有什么现成的解决方案吗,因为现在急用这个方法 ~ ~

@Lee0820
Copy link
Author

Lee0820 commented Mar 30, 2020

@MoLice

@MoLice
Copy link
Collaborator

MoLice commented Mar 30, 2020

image

可以先修改源码,把方法末尾的这里改为 [grayImage drawInRect:CGRectMakeWithSize(grayImage.size)];

@Lee0820
Copy link
Author

Lee0820 commented Mar 30, 2020

好的谢谢

@MoLice
Copy link
Collaborator

MoLice commented Mar 30, 2020

已发布 4.1.1 修复该问题。

@MoLice MoLice closed this as completed Mar 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants