In macOS 10.15.7 Catalina, some images are displayed with green stripes in the thumbnail in Finder and Quick Preview (press Spacebar). However, the image displays correctly when opening in various photo apps like Preview app, Photoshop.
To solve the problem, I have to re-save the JPEG with max quality in the Preview app. Save in the default quality (70% I guess?) won't have any effects at all.
My question is: How to identify these JPEGs (either programmatically / using some software)? When I use
jpeginfo (installed via Homebrew) to check the JPEG, it shows it's OKAY.
jpeginfo --info --check ./error.jpg ./error.jpg 3841 x 2881 24bit Exif Normal Huffman 1068217 [OK]
UPDATE According to the Internet, the tool
jpeginfo is outdated, and cannot diagnose JPEG errors well, as it only checks some key points in the metadata. Now trying other tools...
The problematic image: