Giter VIP home page Giter VIP logo

flyimage's People

Contributors

northwind avatar zhongwuzw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flyimage's Issues

关于`FlyImage`的几个问题

作者你好,偶然的机会看到了你的这个开源库,看了一下你的代码,我觉得有几个问题,列出一下,欢迎交流。

  1. 整体看了一下FlyImage库,在Example测试中,SDWebImageTableViewCell的实现中,对imageView做得操作如下,设置masksToBoundsYES会造成大量的离屏渲染,所以在icon测试中,会出现更加严重的掉帧。实现圆角功能应该使用你项目中实现的那种方式,使用Core Graphics API
@implementation SDWebImageTableViewCell

- (id)imageViewWithFrame:(CGRect)frame {
	UIImageView *imageView = [[UIImageView alloc] initWithFrame:frame];
	imageView.contentMode = UIViewContentModeScaleAspectFill;
	imageView.layer.masksToBounds = YES;  //会触发离屏渲染,导致滑动时掉帧严重
	imageView.layer.cornerRadius = 10;
	[self addSubview:imageView];
	
	return imageView;
}
  1. 在进行图片下载时,给Session的配置为backgroundSessionConfigurationWithIdentifier,即后台模式,所以在进行下载时,其优先级比较低,也就对性能消耗比defaultSessionConfiguration要低一些,其下载完成时间会变长。

  2. 下载时使用了AFNetworkingSessionManager进行下载,所以当不再需要Session时,需要调用invalidateAndCancelfinishTasksAndInvalidate (AFURLSessionManager提供了封装好的- (void)invalidateSessionCancelingTasks:(BOOL)cancelPendingTasks方法),否则会造成内存泄露,因为Session会强引用delegateApple Developer Documentation

Important: The session object keeps a strong reference to the delegate until your app explicitly invalidates the session. If you do not invalidate the session, your app leaks memory.

  1. 有不对的地方欢迎指正。

编译出错

编译提示错误:
FlyImage/src/MoneyKeeper/MoneyKeeper/FlyImage/Core/FlyImageDownloader.m:229:50: Sending 'void (^)(NSProgress * _Nonnull __strong)' to parameter of incompatible type 'NSProgress *__autoreleasing _Nullable * _Nullable'

如果是单张 大图,分辨率非常高的情况下.

就比如,我有一个分辨率极高的图,要在pad 上渲染.现在的情况是,内存直接暴增,直接crash. 这个库是否可以完美解决?减少内存的开销?
我是不是可以这么理解.比如,普通加载一张图,需要的是500M ,如果使用这个库的话,内存也就只需要250M.当然,我现在还没进行试验.

<__NSArrayM: 0x1708526f0> was mutated while being enumerated.'

Trapped uncaught exception 'NSGenericException', reason:
'*** Collection <__NSArrayM: 0x1708526f0> was mutated while being enumerated.'
(
0x00000001896721d8 + 148
0x00000001880ac55c objc_exception_throw + 56
0x0000000189671c08 + 0
0x000000010029c98c -[FlyImageRetrieveOperation
0x000000010029cb48 -[FlyImageRetrieveOperation main]
)

支持gif图片吗

if (contentType == ImageContentTypeUnknown || contentType == ImageContentTypeGif || contentType == ImageContentTypeTiff)
{
return nil;
}

如题,请大神指导一下。

列表快速滑动会崩溃

*** Terminating app due to uncaught exception 'NSGenericException', reason: '*** Collection <__NSArrayM: 0x1c4e59620> was mutated while being enumerated.'
*** First throw call stack:
(0x1854f6364 0x18473c528 0x1854f59f0 0x1009a39a8 0x1009a3b64 0x185dfd4c4 0x185ecf894 0x101a4528c 0x101a52678 0x101a50f08 0x101a569d0 0x101a566f4 0x18511b06c 0x18511ab6c)
libc++abi.dylib: terminating with uncaught exception of type NSExceptio

FlyImage_WebP宏错误导致webp编译不过

1.FlyImage.podspec 中使用的是FLYIMAGE_WEBP代码中使用的是FlyImage_WebP
2.podfile中使用use_frameworks!
会找不到libwebp/webp/decode.h

#ifdef FLYIMAGE_WEBP #import "libwebp/webp/decode.h" #endif

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.