Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ios
/
yh_sdwebimage
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Bogdan Poplauschi
7 years ago
Commit
4ea5423064da59819d0f052272d94d92cd76786d
1 parent
f3524d33
Fix the build due to #2064 changes - had to make sure pod lib lint works on macOS as well
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
SDWebImage/SDWebImageGIFCoder.m
SDWebImage/SDWebImageImageIOCoder.m
SDWebImage/SDWebImageGIFCoder.m
View file @
4ea5423
...
...
@@ -160,6 +160,9 @@
return
nil
;
}
#ifdef SD_MAC
CGImageDestinationAddImage
(
imageDestination
,
image
.
CGImage
,
nil
);
#else
if
(
!
image
.
images
)
{
// for static single GIF images
CGImageDestinationAddImage
(
imageDestination
,
image
.
CGImage
,
nil
);
...
...
@@ -178,6 +181,7 @@
}
}
}
#endif
// Finalize the destination.
if
(
CGImageDestinationFinalize
(
imageDestination
)
==
NO
)
{
...
...
SDWebImage/SDWebImageImageIOCoder.m
View file @
4ea5423
...
...
@@ -89,6 +89,10 @@ static const CGFloat kDestSeemOverlap = 2.0f; // the numbers of pixels to over
return
nil
;
}
#if SD_MAC
return
[[
UIImage
alloc
]
initWithData
:
data
];
#else
UIImage
*
image
=
[[
UIImage
alloc
]
initWithData
:
data
];
if
(
!
image
)
{
return
nil
;
...
...
@@ -111,6 +115,7 @@ static const CGFloat kDestSeemOverlap = 2.0f; // the numbers of pixels to over
#endif
return
image
;
#endif
}
-
(
UIImage
*
)
incrementallyDecodedImageWithData
:
(
NSData
*
)
data
finished
:
(
BOOL
)
finished
{
...
...
Please
register
or
login
to post a comment