Skip to content

Commit

Permalink
fix: rmeove svg after generation of png
Browse files Browse the repository at this point in the history
  • Loading branch information
phthallo committed Jul 5, 2024
1 parent 2470668 commit 9ebdff5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pyflagoras/pyflagoras.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def run(self):
png = (fitz.open(f"{self.name}.pdf")[0]).get_pixmap()
png.save(f"{self.name}.png")
os.remove(f"{self.name}.pdf")
os.remove(f"{self.name}.svg")

print(f"🏳️‍🌈 Generated {flag_attributes['name']} ({flag_attributes['id']}) flag from {Path(self.image).name} as {self.name}.png!")

Expand Down

0 comments on commit 9ebdff5

Please sign in to comment.