Commit Graph

9 Commits

Author SHA1 Message Date
DreamPiggy fc1fd0a74e Create a subclass of NSBitmapImageRep to fix the GIF frame duration issue on macOS 2018-02-18 17:52:13 +08:00
DreamPiggy 7996b0dac8 Update macOS demo to add a clear cache button using NSButton category 2018-01-25 16:42:25 +08:00
DreamPiggy 829d54ff03 Add the image transition argument for all UIView+WebCache, make this easy for user to do some fade transition. It also reuse the current setImageBlock and make it easy to customize 2018-01-23 11:58:22 +08:00
DreamPiggy 19f45a3cf4 Feature refactor built-in coders and support animated webp on macOS (#2082)
* Refactor code. Move the C global function to a new SDWebImageCoderHelper class.

1. Create two method for animated image parse. Provide the way to allow animates on macOS
2. Create a new class called SDWebImageFrame to allow abstract usage for animated image
3. Fix EXIF orientation method will crash on iOS 7 because it’s a iOS 8 above API

* Change sd_imageLoopCount to retrieve GIF loop count for NSImage on macOS

* Adopt the refactor code, change our build-in coder with that coder helper method to reduce complexity

* Update the demo project on macOS to show animated WebP
2017-10-31 20:34:05 +02:00
DreamPiggy fecf4d28fd support animated GIF on macOS
use NSImage built-in method to maintain GIF on macOS
update README
2017-07-29 21:26:38 +08:00
Bogdan Poplauschi b1c3bb7e64 Updated copyright info - replaces #1806 2017-02-19 14:27:48 +02:00
Bogdan Poplauschi 3c4aa45f32 Fixed build due to latest animated WebP support that was not properly adapted for OSX. For OSX, this will not work because the `animatedImageWithImages:duration:` API does not have an equivalent there. 2016-09-30 09:32:34 +03:00
Bogdan Poplauschi 13cfa24cfe Proper file header copyright 2016-06-13 09:14:02 +03:00
Bogdan Poplauschi 442b134206 OSX Example 2016-06-13 00:09:55 +03:00