This script will convert your HEIC files (a format Apple saves photos with) to JPGs. Flip saveasjpg at the top to save as PNG instead. This will result in much larger file sizes. Set keeporiginals to 0 to delete the HEIC files after they're converted. The HEIC files are saved kept around by default. For best results set this up as a cron job.
\* Requires the ImageMagick to be installed with HEIC support. There are links at the top of the script to do this.
\* Requires the ImageMagick CLI software to be installed with HEIC support. There are links at the top of the script to do this.