... and use http
This commit is contained in:
parent
b99f72ecbd
commit
4c255bcf7e
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ def render_poster(data, poster):
|
||||||
if duration:
|
if duration:
|
||||||
for i in range(small_frames):
|
for i in range(small_frames):
|
||||||
position = duration * (i + 1) / (small_frames + 1)
|
position = duration * (i + 1) / (small_frames + 1)
|
||||||
small_frame_url = 'https://arsenalberl.in/%s/96p%f.jpg' % (id, round(position * 25) / 25)
|
small_frame_url = 'http://arsenalberl.in/%s/96p%f.jpg' % (id, round(position * 25) / 25)
|
||||||
small_frame_image = Image.open(StringIO(ox.net.read_url(small_frame_url)))
|
small_frame_image = Image.open(StringIO(ox.net.read_url(small_frame_url)))
|
||||||
small_frame_image_ratio = small_frame_image.size[0] / small_frame_image.size[1]
|
small_frame_image_ratio = small_frame_image.size[0] / small_frame_image.size[1]
|
||||||
if small_frame_ratio < small_frame_image_ratio:
|
if small_frame_ratio < small_frame_image_ratio:
|
||||||
|
|
Loading…
Reference in a new issue