GithubHelp home page GithubHelp logo

jberlana / jbkenburns Goto Github PK

View Code? Open in Web Editor NEW
543.0 25.0 120.0 18.83 MB

Ken Burns effect for iOS. The feature enables a widely used technique of embedding still photographs in motion pictures, displayed with slow zooming and panning effects, and fading transitions between frames.

License: Other

Objective-C 95.65% Ruby 4.35%

jbkenburns's People

Contributors

alecgorge avatar alexllao avatar ben305 avatar boska avatar jberlana avatar jcmontiel avatar johntmcintosh avatar mixdesign avatar steipete avatar stephanecopin avatar yegu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jbkenburns's Issues

Adding images restarts the animation from the first

I have a scenario where I initialize the view with a preloaded image. After that I load the rest of the images async and the using the addImage method to add it to the view.

After the first image animates the same image repeats once before the view animating correctly. This take the cool effect away. Do you know if this is a known issue or am I doing something wrong?
Thanks for a great control!

duplicate symbol _JBZoomMode in:

I manually add the classes to the project and import the header into my view controller and i get this error from Xcode.

duplicate symbol _JBZoomMode in:

ld: 2 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Dynamic url array?

I am looking for a way to dynamically add images to the rotation while it is occurring. I'd be happy to dig into your code but I thought I'd ask if you have any suggestions or known problems with that before I dive into it.

Is it possible to dynamically add images to the slideshow while it is running?

Thanks!

Using in a UITableViewHeader

Thanks for making this!

I was interested in using this in a tableView Header but all I'm getting is the background color.

Ideally, I'd also like to add a zoom effect when the user pulls down on the tableView as the images animate. Would that be possible.

Thanks again,

Jay

ARC + Modern Objc

https://github.com/orta/iOSKenBurns/tree/cleanup

Hello there, I've done a large refactoring to this view but wasn't quite sure of your reliance on accessing the internet URLs. I don't need it, and I wasn't happy with leaving your synchronous version in.

Changes: I've switched it to ARC, massively simplified the public header, switched it from using sleep on a separate thread to using NSTimers, uses object literals and consolidated the next image animation functions.

It's quite a big change so I'll let you read over the code and decide for yourself if you're interested in the PR, if so I'll make it. Don't want to be rude and make presumptions.

Line 242 in JBKenBurnsView.m

Change:

[UIView animateWithDuration:_showImageDuration + 2 delay:0 options:UIViewAnimationCurveEaseInOut animations:^ {

into:
[UIView animateWithDuration:_showImageDuration + 2 delay:0 options:UIViewAnimationOptionCurveEaseInOut animations:^ {

to suppress compiler warning.

Thanks.

Photos do not always fill view

I am having an issue where the animated photo will start in a position that leaves white space around the photo that is being animated. The animation usually moves the photo to fill the space. This happens regardless of the isLandscape flag.

I am using the version from cocoaPods.

New release

Can you please make new tag(release) with latest changes? The reason is I am using this via Cocoa Pods podspecs file, and as far as I understand I cannot use specific commit or trunk like it is possible from podfile.

Thx

memory is never released

I am adding a KenBurnView to my UIView and when I back out of this view the memory is never released so when I go back in the and everything is generated again memory creeps up eventually causing a crash.

Any ideas for a fix for this?

Need to able to set zoom points

I have a request for this project. This works very nice but it zooms at random places. I have a requirement where I need to zoom each image at some specific point and the user will be able to set that point.

Please let me know if this is possible.

Thanks.

Device orientation - Current image not fully scaled

Hi,

Thank you for the great library. i'm facing an issue where while an image is moving, and device is rotated, then the current moving image is not fully scaled. The second upcoming image however is scaled properly. I'm using JBKenBurns view on my entire screen so this is looking odd.
Please let me know any fixes or workarounds.
Thanks.

Combine local images with URLs?

Is there a way to combine local images with URLs. For instance, use local for 3 images and a url for the fourth.

I've tried to create URLs from local files like this, but can't get it to work:

NSString *file = [[NSBundle mainBundle] pathForResource:@"localImage" ofType:@"jpg"];
NSLog(@"file:%@", file); // shows correct path
NSArray *myUrls = [NSArray arrayWithObjects:
@"http://example.com/1.jpg",
@"http://example.com/2.jpg",
file,
nil];
[self.kenView animateWithURLs:myUrls
transitionDuration:7
loop:YES
isLandscape:YES];

View Overlaps any other View

I implemented this View in my project, working just fine on iOS 8. However I would like to overlay the pictures with some UILabels that I arranged to the front in Interface Builder. However the KB View always overlaps them once the transition starts.

Is this supported?

Images are rotating 90 or 180 degrees

We are using the library for the slideshow, it works perfectly fine. But some of the photos gets rotated. One observation is that rotation happens only with camera capture photos - not sure if its specific to camera captured photos only or not.

English comments

I've noticed you have quite some spanish comments - can you convert them to english?
It helps others who don't speak spanish to better understand the code; and it's good practice too since the actual source code is english. Thanks!

never release memory

I am adding a KenBurnView to my UIView and when I back out of this view the memory is never released so when I go back in the and everything is generated again memory creeps up eventually causing a crash.

Any ideas for a fix for this?

Please add semantic version tags.

I’ve recently added JBKenBurns to the CocoaPods package manager repo.

CocoaPods is a tool for managing dependencies for OSX and iOS Xcode projects and provides a central repository for iOS/OSX libraries. This makes adding libraries to a project and updating them extremely easy and it will help users to resolve dependencies of the libraries they use.

However, JBKenBurns doesn't have any version tags. I’ve added the current HEAD as version 0.0.1, but a version tag will make dependency resolution much easier.

Semantic version tags (instead of plain commit hashes/revisions) allow for resolution of cross-dependencies.

In case you didn’t know this yet; you can tag the current HEAD as, for instance, version 1.0.0, like so:

$ git tag -a 1.0.0 -m "Tag release 1.0.0"
$ git push --tags

Do I need to disable auto layout when implement this?

I create a custom view xib file, and create a class view for it. Then I add this view to my view controller, in main story board I drag a JBKenBurnView, and I don't set auto layout for it. But it doesn't show well, some images don't show full screen.

Setting the animation duration to below 1 second

When I set the animation duration to below 1 second, the images flip through at a very fast rate (seems like it takes only a second for the images to all be displayed once).

I have been poking around with some of the code, but I have been unsuccessful in fixing it.

Any help would be great, thanks!

iPhone X Fix

In iPhone X does not fill the entire screen with the effect.
simulator screen shot - iphone x - 2018-03-16 at 10 08 59

Memory Problem when used as background for UIPageViewController

Hi, I am trying to use your class as the background of the child/content view controller of a UIPageViewController. The problem I am having is that with every new page generated the memory goes up, and up. (from what I understand the size of the image is added to the memory every time but never released). Do you think this might be a problem with your class or am I doing something wrong with the pageViewController?

Here is the code I am using

  • (void)viewDidLoad {
    [super viewDidLoad];

    //KEN BURNS

    NSString *filepath = [[NSBundle mainBundle]pathForResource:self.imageString ofType:@"png"];
    NSLog(@"Loading Ken View with image %@",filepath);

    self.kenView.frame = self.view.frame;

    [self.kenView animateWithImagePaths:@[filepath] transitionDuration:8 loop:YES isLandscape:YES] ;

}
-(void)viewWillDisappear:(BOOL)animated{
[self.kenView stopAnimation];
}

  • (void)viewDidDisappear:(BOOL)animated
    {

    [super viewDidDisappear:animated];
    [self setKenView:nil];
    }

I would really appreciate it if you can help me out!
Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.