Skip to content

Commit

Permalink
pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
hamidb80 committed Aug 25, 2024
1 parent 67c7b99 commit f954550
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cli/main.nim
Original file line number Diff line number Diff line change
Expand Up @@ -789,9 +789,9 @@ when isMainModule:
echo "new note created in: ", $notePath

of "compress-webp":
let quality = parseFloat params[2]
for fpath in walkDirRec str params[1]:
let pfpath = splitFile fpath
let quality = parseFloat params[2]
for fpath in walkDirRec str params[1]:
let pfpath = splitFile fpath
case pfpath.ext.toLowerAscii:
of ".png", ".jpg", "jpeg":
let cmd = fmt"magick.exe {fpath} -quality {quality} {pfpath.dir/pfpath.name}.webp"
Expand Down

0 comments on commit f954550

Please sign in to comment.