Compare commits
2 commits
296cf5550a
...
fe1aec4b59
| Author | SHA1 | Date | |
|---|---|---|---|
| fe1aec4b59 | |||
| fe1d3b3d9b |
2 changed files with 2 additions and 7 deletions
|
|
@ -25,10 +25,8 @@ def deletterbox(filename):
|
||||||
#image.save('%s_%d%s' % (base, x, ext))
|
#image.save('%s_%d%s' % (base, x, ext))
|
||||||
|
|
||||||
rotated = image.rotate(90, expand=True)
|
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:
|
if rotated.size != image.size:
|
||||||
rotated = rotated.crop([1, 1, rotated.size[0], rotated.size[1]])
|
rotated = rotated.crop([0, 0, rotated.size[0], rotated.size[1]])
|
||||||
|
|
||||||
image = rotated
|
image = rotated
|
||||||
print()
|
print()
|
||||||
|
|
@ -54,7 +52,4 @@ def trim_top(image):
|
||||||
image = image.crop(bounds)
|
image = image.crop(bounds)
|
||||||
return image
|
return image
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
deletterbox(filename)
|
deletterbox(filename)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ function give_event(player, index)
|
||||||
players[index].addEventListener("ended", function(){ console.log(next); players[next].play(); });
|
players[index].addEventListener("ended", function(){ console.log(next); players[next].play(); });
|
||||||
}
|
}
|
||||||
|
|
||||||
players = document.getElementsByTagName("audio");
|
players = Array.from(document.getElementsByTagName("audio"));
|
||||||
/*length - 1 because the final player doesn't need an event, only the second-last.*/
|
/*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)
|
for (var index = 0; index < players.length - 1; index += 1)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue