Forum Discussion
Batch convert png to jpg on mac without losing quality?
If you need to convert PNG to JPG on mac in batches, you can try the following methods without any third-party tools:
Use Automator: Automator is a built-in automation tool for macOS. You can create a workflow to batch convert PNG to JPG. The specific steps are to open Automator, select "Application", then add the "Get Specified Finder Items" and "Change Image Type" actions, and finally save the files in JPG format.
Use the command line: You can batch convert PNG to JPG using the sips command line tool that comes with macOS. Open the terminal and use the following command:
for f in *.png; do sips -s format jpeg "$f" --out "${f%png}jpg"; done
This command will convert all PNG files in the current folder to JPG.
Use the batch operation of the Preview application: Although Preview can usually only convert one by one, you can select multiple PNG files, right-click and select "Preview" in "Open with". Then, after opening all in Preview, select "File" > "Export", set it to JPG format, and save it to batch convert.
All three methods do not require the installation of third-party tools, and can easily complete the conversion from PNG to JPG, which is suitable for use on Mac.