Skip to content

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

Open
Naituw wants to merge 1 commit into
pinterest:masterfrom
Naituw:master
Open

#trivial Fix: Download fail when using processor with GIF image#540
Naituw wants to merge 1 commit into
pinterest:masterfrom
Naituw:master

Conversation

@Naituw

@Naituw Naituw commented Feb 23, 2020

Copy link
Copy Markdown
Contributor

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

ghost commented Feb 25, 2020

Copy link
Copy Markdown

🚫 CI failed with log

@strangeliu

Copy link
Copy Markdown

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

@Naituw

Naituw commented Feb 26, 2020

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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.

3 participants