Skip to content

Commit

Permalink
Update generate_readme.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Jan 21, 2020
1 parent 9638a12 commit a922836
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,42 +92,42 @@ tiled = imgviz.tile(
<table>
<tr>
<td><pre><a href="examples/centerize.py">examples/centerize.py</a></pre></td>
<td><img src="examples/.readme/centerize.jpg" width="66.66666666666666%" /></td>
<td><img src="examples/.readme/centerize.jpg" width="53.333333333333336%" /></td>
</tr>
<tr>
<td><pre><a href="examples/depth2rgb.py">examples/depth2rgb.py</a></pre></td>
<td><img src="examples/.readme/depth2rgb.jpg" width="65.26315789473684%" /></td>
<td><img src="examples/.readme/depth2rgb.jpg" width="52.21052631578947%" /></td>
</tr>
<tr>
<td><pre><a href="examples/draw.py">examples/draw.py</a></pre></td>
<td><img src="examples/.readme/draw.jpg" width="50.30425963488844%" /></td>
<td><img src="examples/.readme/draw.jpg" width="40.24340770791075%" /></td>
</tr>
<tr>
<td><pre><a href="examples/flow2rgb.py">examples/flow2rgb.py</a></pre></td>
<td><img src="examples/.readme/flow2rgb.jpg" width="65.26315789473684%" /></td>
<td><img src="examples/.readme/flow2rgb.jpg" width="52.21052631578947%" /></td>
</tr>
<tr>
<td><pre><a href="examples/instances2rgb.py">examples/instances2rgb.py</a></pre></td>
<td><img src="examples/.readme/instances2rgb.jpg" width="82.94314381270902%" /></td>
<td><img src="examples/.readme/instances2rgb.jpg" width="66.35451505016722%" /></td>
</tr>
<tr>
<td><pre><a href="examples/label2rgb.py">examples/label2rgb.py</a></pre></td>
<td><img src="examples/.readme/label2rgb.jpg" width="95.01915708812261%" /></td>
<td><img src="examples/.readme/label2rgb.jpg" width="76.01532567049807%" /></td>
</tr>
<tr>
<td><pre><a href="examples/nchannel2rgb.py">examples/nchannel2rgb.py</a></pre></td>
<td><img src="examples/.readme/nchannel2rgb.jpg" width="65.26315789473684%" /></td>
<td><img src="examples/.readme/nchannel2rgb.jpg" width="52.21052631578947%" /></td>
</tr>
<tr>
<td><pre><a href="examples/plot_trajectory.py">examples/plot_trajectory.py</a></pre></td>
<td><img src="examples/.readme/plot_trajectory.jpg" width="33.58585858585859%" /></td>
<td><img src="examples/.readme/plot_trajectory.jpg" width="26.86868686868687%" /></td>
</tr>
<tr>
<td><pre><a href="examples/resize.py">examples/resize.py</a></pre></td>
<td><img src="examples/.readme/resize.jpg" width="59.047619047619044%" /></td>
<td><img src="examples/.readme/resize.jpg" width="47.238095238095234%" /></td>
</tr>
<tr>
<td><pre><a href="examples/tile.py">examples/tile.py</a></pre></td>
<td><img src="examples/.readme/tile.jpg" width="44.76534296028881%" /></td>
<td><img src="examples/.readme/tile.jpg" width="35.812274368231044%" /></td>
</tr>
</table>
2 changes: 1 addition & 1 deletion generate_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def main():
if not osp.exists(img_file):
continue
img = PIL.Image.open(img_file)
width = 25. / img.height * img.width
width = 20. / img.height * img.width
examples.append((
'<pre><a href="{}">{}</a></pre>'.format(py_file, py_file),
'<img src="{}" width="{}%" />'.format(img_file, width),
Expand Down

0 comments on commit a922836

Please sign in to comment.