Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#trivial Fix: Download fail when using processor with GIF image #540

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Naituw
Copy link
Contributor

@Naituw Naituw commented Feb 23, 2020

Before: Since GIF image become alternate representation, processor can't get an UIImage/NSImage to process, a PINRemoteImageManagerErrorFailedToFetchImageForProcessing error is returned.

This Fix: Disallow alternate representation when obtaining the image for processing.

@ghost
Copy link

ghost commented Feb 25, 2020

🚫 CI failed with log

@strangeliu
Copy link

For gifs, alternate representation is enabled by default, Use downloadImageWithURL:options:completion: to customize options.

@Naituw
Copy link
Contributor Author

Naituw commented Feb 26, 2020

For gifs, alternate representation is enabled by default, Use downloadImageWithURL:options:completion: to customize options.

Current implementation will fail on the test I added.

I don't mean to disable alternate representation by default for gif, but alternative reps should not created when user want to process the image by a processor.

@bolsinga bolsinga requested a review from garrettmoon May 21, 2020 01:18
@garrettmoon
Copy link
Collaborator

Can you please rebase this? (sorry for the delayed review!)

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

Successfully merging this pull request may close these issues.

None yet

3 participants