This is an old revision of the document!

Short snippets

These short bash commands or code snippets have proven useful. I will try to collect them here, and maybe freeze some of them into a proper .bashrc (and the relevant equivalent on Windows). Alternatively, I could bundle related snippets into blog posts. Let's see where this goes.

Convert pictures to lower resolution in subfolder

Bash mkdir export && magick mogrify -resize 3000×3000 -quality 80 -path export *.jpg

PowerShell mkdir export; magick mogrify -resize 3000×3000 -quality 80 -path export *.jpg

  • snippets.1502315370.txt.gz
  • Last modified: 2017/08/09 21:49
  • by ojdo