Convert images

=====Convert multiple jpg’s into bmp’s===== for i in *.jpg; do sips -s format bmp $i –out ../clouds-201509-bmp/$i.bmp;done

=====Resize batch===== first height, then width! for i in *.jpg; do sips -z 1024 2048 $i –out ../clouds-201509-2k/$i;done

=====create gradient===== convert -size 100x300 gradient:#000-#f00 gradient:#f00-#ff0 gradient:#ff0-#fff gradient:#fff-#0ff gradient:#0ff-#00f gradient:#00f-#000 -append lut.png

  • more info http://www.imagemagick.org/Usage/canvas/#gradient_colorspace