Home » 2014 » August

Archive for August, 2014

CLI image conversion JPG to PNG

Posted 2014/08/16 By mikep345678

Using ImageMagick (on Linux) to convert all jpgs in a folder to png, with alpha layer, with longest side 400 pixels:

for f in *.jpg; do convert -verbose -resize "400x400>" -alpha on "$f" "${f/%jpg/png}"; done