We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22116c1 commit bbdf287Copy full SHA for bbdf287
1 file changed
lib/pbio/src/image/media.py
@@ -18,7 +18,7 @@
18
for svg in svg_files:
19
png = svg.with_suffix(".png").name
20
png_path = build_dir / png
21
- if png_path.exists():
+ if png_path.exists() and png_path.stat().st_mtime >= svg.stat().st_mtime:
22
continue
23
with open(svg, "rb") as svg_file:
24
png_bytes = cairosvg.svg2png(file_obj=svg_file)
0 commit comments