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

Passing an array of image URLs alternatively to imagePath, filePrefix & ext to constructor #50

Closed
ghost opened this issue Sep 8, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 8, 2014

Would be great, if ThreeSixty was able not only to build it's image structure from class constructor options imagePage, filePrefix, (zeroPadding) and ext, but also had an option to pass the image URLs as an array.

I have lots of autogenerated image sets consisting of 36 single images with relatively big dimensions, and due to loading times only every second frame should be loaded (1, 3, 5, ...). Thats enough for a smooth transition between the frames and reduces loading time (and traffic of course on server and client side) by half.

As a plus, by passing an array of ready qualified URLs, one is also able to use images that are numbered with characters (A, B, C) or have an inconsistent naming scheme.

Best,
Alex.

@ghost
Copy link
Author

ghost commented Jan 29, 2015

One thing I missed: it is possible to do that -- just call ThreeSixty this way:
$(element).ThreeSixty({
....
imgArray: ['http://www.example.com/1.png', 'http://www.example.com/2.png'],
....
});

@ghost ghost closed this as completed Jan 29, 2015
This issue was closed.
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

No branches or pull requests

0 participants