bash create png image code example
Example 1: command to create jpeg in linux
#!/bin/bash
for file in `ls *.png`
do
newfile=`echo $file | sed 's/png/jpg/'`
convert $file $newfile
done
Example 2: command to create jpeg in linux
$ sudo apt-get install imagemagick