Compare commits

..

No commits in common. "fe1aec4b59473d3e24450df28e743196089f8ddd" and "296cf5550aab13ceca5177f3357fbcebbe4a041f" have entirely different histories.

2 changed files with 7 additions and 2 deletions

View file

@ -25,8 +25,10 @@ def deletterbox(filename):
#image.save('%s_%d%s' % (base, x, ext))
rotated = image.rotate(90, expand=True)
# There is currently a bug in PIL which causes rotated images
# to have a 1 px black border on the top and left
if rotated.size != image.size:
rotated = rotated.crop([0, 0, rotated.size[0], rotated.size[1]])
rotated = rotated.crop([1, 1, rotated.size[0], rotated.size[1]])
image = rotated
print()
@ -52,4 +54,7 @@ def trim_top(image):
image = image.crop(bounds)
return image
deletterbox(filename)

View file

@ -10,7 +10,7 @@ function give_event(player, index)
players[index].addEventListener("ended", function(){ console.log(next); players[next].play(); });
}
players = Array.from(document.getElementsByTagName("audio"));
players = document.getElementsByTagName("audio");
/*length - 1 because the final player doesn't need an event, only the second-last.*/
for (var index = 0; index < players.length - 1; index += 1)
{