TIL: Scale images in command line

To resize images in commandline imagemagick package is required. With the package convert command becomes available which could be used to resize or scale images.

convert -resize 30% *.jpg
convert-resize 200x200 *.jpg