Browse Source

delete png in case it is huge (usually is)

master
poikilos 8 years ago
committed by Jacob Gustafson
parent
commit
4dc42077c9
  1. 2
      singleimage.py

2
singleimage.py

@ -170,6 +170,8 @@ class ChunkymapOfflineRenderer:
if os.path.isfile(dest_jpg_path): if os.path.isfile(dest_jpg_path):
print("jpg image saved to:") print("jpg image saved to:")
print(" "+dest_jpg_path) print(" "+dest_jpg_path)
os.remove(final_png_path)
print("removed temporary file "+final_png_path)
else: else:
print("Could not write '"+dest_jpg_path+"'") print("Could not write '"+dest_jpg_path+"'")
if os.path.isfile(genresult_path): if os.path.isfile(genresult_path):

Loading…
Cancel
Save