-
Notifications
You must be signed in to change notification settings - Fork 18
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
Image Queue #18
Image Queue #18
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to approve this, looks really strong. But I think you need to add the pod dependency, which is the only blocker. You'll also want to bump the version (major bump seems appropriate?)
I also and left a few nits on the code.
KenBurns/Classes/KenBurns.swift
Outdated
|
||
self.fetchImage(self.imageURLs!.read()!, placeholder: nil) | ||
|
||
for _ in 0..<10 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure I understand where this magic number. 10 is coming from. Can you please explain, and also drop a comment here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From my testing, I found that when the nextImage function is used there is a glitch that remote images might not be downloaded in time. 10 is an arbitrary number. Of course there are optimizations we could do to avoid this such as image compression, preloading, caching, etc. This is more of a temporary solution
Hi Tyler, thanks for taking the time to look at my PR. Going ahead to make the changes requested |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes.
Can you bump the version in the podspec to 0.4.0?
One final question before approving: I noticed from your gif that they're not cross-fading over one another. I haven't tried and run this myself. Does this ruin the cross-fade effect? That's an important part of this, and I would have expected, for example, Image 1 to gently fade out to reveal Image 2 behind, then Image 3 etc in a loop.
Yes, thanks for pointing that out. Fixing that right now, give me a few! |
Add ring buffer for smoothness Removed Copyright added GIF and removed SD Image GIF was too large Added demo, cleaned up code, updated gif, removed ringbuffer Increase GIF Size Reduced Size of GIF
Changes made:
|
@justinbarnett1 merged to
|
Thank you! Just wondering are you guys hiring for PM? I’m based in FL but willing to relocate |
Allow users to queue multiple images locally or remote