Skip to content
Permalink
Browse files

Enclosed arguments to identify and background-image in quotes to supp…

…ort image names with spaces, parentheses etc.
  • Loading branch information...
tokee committed Apr 17, 2018
1 parent 5a8adc9 commit c73c2bcc1f725beffa7791f39548435705cebafc
Showing with 3 additions and 3 deletions.
  1. +2 −2 index.html
  2. +1 −1 utils/process_images.py
@@ -40,7 +40,7 @@ <h2>Hotspots</h2>
<% _.forEach(hotspots, function(hotspot) { %>
<div class='hotspot'>
<div class='background-image'
style='background-image: url(output/thumbs/128px/<%= hotspot.img %>)'></div>
style='background-image: url("output/thumbs/128px/<%= hotspot.img %>")'></div>
<div><%= hotspot.label %></div>
</div>
<% }); %>
@@ -56,4 +56,4 @@ <h2>Hotspots</h2>
<script type='text/javascript' src='assets/js/tsne-webgl.js'></script>
<script type='text/javascript' src='assets/js/ga.js'></script>
</body>
</html>
</html>
@@ -69,7 +69,7 @@ def validate_inputs(self):
invalid_files = []
for i in self.image_files:
try:
cmd = 'identify ' + i
cmd = 'identify "' + i + '"'
response = subprocess.check_output(cmd, shell=True)
except:
invalid_files.append(i)

0 comments on commit c73c2bc

Please sign in to comment.
You can’t perform that action at this time.