Skip to content

Conversation

dreampiggy
Copy link
Contributor

@dreampiggy dreampiggy commented Oct 21, 2023

New Pull Request Checklist

  • I have read and understood the CONTRIBUTING guide

  • I have read the Documentation

  • I have searched for a similar pull request in the project and found none

  • I have updated this branch with the latest master to avoid conflicts (via merge from master or rebase)

  • I have added the required tests to prove the fix/feature I am adding

  • I have updated the documentation (if necessary)

  • I have run the tests and they pass

  • I have run the lint and it passes (pod lib lint)

This merge request fixes / refers to the following issues: ...

Behavior Changes

See: #3625 discussion about the old behavior

This previously will only return nil for static image, so this may be a behavior changes. Some user will forget to check the nil for SDAnimatedImage. So we make this more like the YYImage like object which return non-nil for static image.

For example, SDAnimatedImageView loading url will cache the SDAnimatedImage instead of UIImage

CC @hstdt

This previously will only return nil for static image, so this may be a behavior changes
For example, SDAnimatedImageView loading url will cache the `SDAnimatedImage` instead of `UIImage`
@dreampiggy dreampiggy force-pushed the behavior/sdanimatedimage_jpeg_nonnil branch from 61c6a6a to 42f35ca Compare October 21, 2023 09:58
…le to coder as well

This metadata information is important for some edge cases decoding
// Animated Image
return [self initWithAnimatedCoder:animatedCoder scale:scale];
} else {
// Static Image (Before 5.19 this code path return nil)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant