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

Adds support for specifying a quality indexed array of URLs #557

Merged
merged 6 commits into from
Sep 11, 2017

Conversation

garrettmoon
Copy link
Member

This allows PINRemoteImage to download from a set of URLs depending on network conditions.

More context perhaps:
pinterest/PINRemoteImage#407
pinterest/PINRemoteImage#403

@ghost
Copy link

ghost commented Sep 8, 2017

🚫 CI failed with log

@ghost
Copy link

ghost commented Sep 8, 2017

🚫 CI failed with log

Copy link
Member

@nguyenhuy nguyenhuy left a comment

Choose a reason for hiding this comment

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

Some questions aside, LGTM!

[self _locked__setImage:result];

_imageLoaded = YES;
}
Copy link
Member

Choose a reason for hiding this comment

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

Looks like we're fetching images from low cost to higher cost and don't bail as soon as there is a cache hit. Does this mean that if there are multiple images, we'll end up fetching all of them but only use the best one? If that's the case, should we instead fetch in reverse order and stop as early as possible?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, good catch!

@garrettmoon garrettmoon merged commit 3c77d4a into master Sep 11, 2017
garrettmoon added a commit that referenced this pull request Dec 5, 2017
garrettmoon added a commit that referenced this pull request Dec 5, 2017
)

* Revert "Adds support for specifying a quality indexed array of URLs (#557)"

This reverts commit 3c77d4a.

* Add CHANGELOG entry
@appleguy appleguy deleted the lowResImages branch December 28, 2017 00:56
bernieperez pushed a commit to AtomTickets/Texture that referenced this pull request Apr 25, 2018
…roup#557)

* Add support for downloading a set of URLs on ASNetworkImageNode

* Should be building now;

* Remove old unused code

* Add a changelog message

* Bump PINRemoteImage

* Huy's comments
bernieperez pushed a commit to AtomTickets/Texture that referenced this pull request Apr 25, 2018
…extureGroup#699)

* Revert "Adds support for specifying a quality indexed array of URLs (TextureGroup#557)"

This reverts commit 3c77d4a.

* Add CHANGELOG entry
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.

2 participants