Because some images were too large and exceeded the JPEG file size limit, I used ImageMagick to convert them all to PNG files using lossless compression. I also compared the original and converted images, and both the RMSE and PAE values were 0, so you don't need to worry about quality loss. Compression level: 9 File size: 312MB -> 130MB