Compress and Optimize files like JPEG, JPG, PNG, GIF, MP4, PowerPoint, Word, Excel. jpg then execute the command convert passing as arguments the file name $i and then using as an output the same file name removing the extension and adding the new one. The RTF file uses ANSI, PC-8, MAC, and IBM PC character sets.
This will search for files within the directory having the extension. To test before (dry-run) you could use echo instead of the : $ for i in *.jpg do In the Export box, select the JPEG format from the Format dropdown. With the image open, go to File>Export on the menu bar. This is an example from the command line using convert ( brew info imagemagick) converting all *.jpg images in one directory to. Preview can convert an image to JPEG so if your image is a PNG or a TIFF, the process for converting and compressing it in JPEG format will be the same.