Hi, Problem solved. The following command in imagemagik does the job on each image. convert -size 1920x1080 xc:black -page +0+0 img001.jpg -layers flatten test.jpg