new frame urls

This commit is contained in:
rolux 2011-08-06 18:18:39 +00:00
parent 73a14c8a47
commit 12e2c36d89
3 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@ pandora.ui.flipbook = function(item) {
var duration = result.data.duration,
posterFrame = result.data.posterFrame || parseInt(duration/2),
steps = 24,
framePrefix = '/' + item + '/frame' + that.height() + 'p',
framePrefix = '/' + item + '/' + that.height() + 'p',
frames = {};
Ox.range(0, duration, duration/steps).forEach(function(position) {
position = parseInt(position);

View file

@ -181,7 +181,7 @@ pandora.ui.item = function() {
var ratio = data.aspectRatio,
width = size,
height = size/ratio,
url = '/' + data.item + '/frame/' + size + '/'+data['in'] + '.jpg';
url = '/' + data.item + '/' + size + '/'+data['in'] + '.jpg';
return {
height: height,
id: data['id'],

View file

@ -202,7 +202,7 @@ pandora.ui.list = function(view) { // fixme: remove view argument
var fixedRatio = 4/3,
width = data.aspectRatio < fixedRatio ? size : size * data.aspectRatio / fixedRatio,
height = width / data.aspectRatio,
url = '/' + data.item + '/frame/' + width + '/' + data['in'] + '.jpg';
url = '/' + data.item + '/' + width + '/' + data['in'] + '.jpg';
return {
height: height,
id: data.id,