removing the ugly thumbnail behind the video
This commit is contained in:
@@ -232,7 +232,7 @@ class Gallery(object):
|
||||
if f in imglist:
|
||||
outname = join(outpath, filename)
|
||||
else:
|
||||
outname = ''.join([os.path.splitext(filename)[0], '.webm'])
|
||||
outname = os.path.splitext(filename)[0] + '.webm'
|
||||
|
||||
if os.path.isfile(outname) and not self.force:
|
||||
self.logger.info("%s exists - skipping", filename)
|
||||
|
||||
BIN
sigal/themes/galleria/static/img/empty.png
Normal file
BIN
sigal/themes/galleria/static/img/empty.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 151 B |
@@ -67,8 +67,10 @@
|
||||
</a>
|
||||
{% endfor %}
|
||||
{% for video in videos %}
|
||||
<a href="{{ theme.url }}/img/empty.png">
|
||||
<img src="{{ video.thumb }}" alt="{{ video.file }}"
|
||||
data-layer="<video style='position:inherit'; top:50%; left:50%;margin-top:-150px;margin-left:-200px' controls> <source src={{ video.file }} type='video/webm' /></video>" />
|
||||
data-layer="<video controls> <source src={{ video.file }} type='video/webm' /></video>" />
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user