Skip to content

Commit

Permalink
add more info output
Browse files Browse the repository at this point in the history
  • Loading branch information
jgstew committed Sep 25, 2023
1 parent 567eae3 commit 6ade957
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SharedProcessors/FileImageSvgToPng.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ def main(self):
if max_pixel_dim == 0:
max_pixel_dim = 256
file_pathname = self.env.get("file_pathname", self.env.get("pathname", None))

self.output(f"INFO: input file path: {file_pathname}")

# reset file path png:
self.env["file_path_png"] = ""
# reset max dim to default
Expand All @@ -69,6 +72,7 @@ def main(self):
self.convert_svg_to_png(file_pathname, file_path_save, max_pixel_dim)

self.env["file_path_png"] = file_path_save
self.output(f"INFO: output file path: {file_path_save}")
else:
self.output(f"WARNING: file does not exist! {file_pathname}", 0)

Expand Down

0 comments on commit 6ade957

Please sign in to comment.