Skip to content

Commit

Permalink
chore(downsample_mask): remove . before the exported mask's suffix
Browse files Browse the repository at this point in the history
Signed-off-by: Max SCHMELLER <[email protected]>
  • Loading branch information
mojomex committed Jan 16, 2025
1 parent 6ca6b4a commit 024c521
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ class DownsampleMaskFilter

if (export_dithered_mask) {
std::filesystem::path out_path{filename};
out_path = out_path.replace_extension("_dithered.png");
out_path = out_path.replace_filename(
out_path.stem().string() + "_dithered" + out_path.extension().string());

try {
dithered.write(out_path);
Expand Down

0 comments on commit 024c521

Please sign in to comment.