Skip to content

Commit

Permalink
update visualizer
Browse files Browse the repository at this point in the history
  • Loading branch information
yiranran committed Apr 20, 2020
1 parent 38bcf3d commit 5b0c56a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion render-to-video/util/visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
# save image to the disk
def save_images(webpage, visuals, image_path, aspect_ratio=1.0, width=256):
image_dir = webpage.get_image_dir()
short_path = ntpath.basename(image_path[0])
short_path1 = ntpath.basename(ntpath.dirname(image_path[0]))
short_path = short_path1 + '-' + short_path
name = os.path.splitext(short_path)[0]

webpage.add_header(name)
Expand Down

0 comments on commit 5b0c56a

Please sign in to comment.