Comments (3)
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UIGraphicsBeginImageContext() failed to allocate CGBitampContext: size={0, 0}, scale=3.000000, bitmapInfo=0x2006. Use UIGraphicsImageRenderer to avoid this assert.'
_UIGraphicsBeginImageContextWithOptions 方法被弃用,麻烦作者可以更新一下吗?
可以试一下这个方法,参考这篇:
https://www.jianshu.com/p/aeb0b9129fcd
UIGraphicsImageRenderer *re = [[UIGraphicsImageRenderer alloc]initWithSize:view.bounds.size];
UIImage *image = [re imageWithActions:^(UIGraphicsImageRendererContext * _Nonnull rendererContext) {
}];
return image;
from ybimagebrowser.
这一篇更详细一点,可能需要自己去做修改了
https://blog.csdn.net/weixin_42050662/article/details/134524136
from ybimagebrowser.
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UIGraphicsBeginImageContext() failed to allocate CGBitampContext: size={0, 0}, scale=3.000000, bitmapInfo=0x2006. Use UIGraphicsImageRenderer to avoid this assert.'
_UIGraphicsBeginImageContextWithOptions 方法被弃用,麻烦作者可以更新一下吗?可以试一下这个方法,参考这篇: https://www.jianshu.com/p/aeb0b9129fcd UIGraphicsImageRenderer *re = [[UIGraphicsImageRenderer alloc]initWithSize:view.bounds.size]; UIImage *image = [re imageWithActions:^(UIGraphicsImageRendererContext * _Nonnull rendererContext) {
}]; return image;
感谢,有效,作者快快更新~
from ybimagebrowser.
Related Issues (20)
- 图片未加载完、视频等,下拉跳闪的解决办法
- 最新SDK,好像没有找到水印的功能
- 播放视频没声音
- 预览时,查看图片黑屏 HOT 3
- ios16上预览视频播放时左右滑动查看相邻的图片,再返回该视频后黑屏。iOS15没问题。 HOT 1
- Image对特大分辨率的渲染支持不太好。极容易因内存问题而crash。 HOT 1
- 什么时候支持 spm 呀? 本来想用 yb, 奈何不支持 spm
- 升级 sdwebimage 5.0 之后 找不到属性 YBImageBrowser shouldDecompressImages
- WEBP图片加载失败 HOT 3
- 崩溃
- 崩溃 HOT 5
- iOS 14 上的图片打开黑屏什么时候可以更新下 HOT 3
- ios17点击查看图片崩溃 HOT 2
- Can add apple privateInfo?
- 关于wepP图片不能显示,并把SDWebImage版本升级到4.7.0
- Use of undeclared identifier 'YBIBImageData'
- 长截图显示不正常,宽度不对,只能显示三分之一的宽
- UIGraphicsBeginImageContextWithOptions 闪退问题 HOT 1
- 如何隐藏右上方按钮 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ybimagebrowser.