linux jpeg to jpg code example
Example 1: command to create jpeg in linux
$ sudo apt-get install imagemagick
Example 2: 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