alex Ok, I found out exactly what is happening here. Your images are massive, and exceed the estimated memory required for running PHP exif_read_data() on the images. This is explained in detail in the below post:
https://forum.files.gallery/d/743-autorefsresh-and-autoplay/15
After the issue in the post above was reported, I implemented a test that checks if server has sufficient memory to run the exif_read_data() on each specific image (dimensions). If we didn't do that, we run the risk of the the entire folder failing to load because of "insufficient memory" error, as you can read about in the post above.
So that is the reason, and also why the first image 7.5 MP works, and the 3rd image 30 MP doesn't. Basically, we can't know that this image is oriented by EXIF, because we can't extract the image EXIF information. Therefore, it will report as a 8160 X 3672 px (wide) image, whereas it's actually 3672 X 8160 px (tall) image, and the image is inserted into HTML at wrong dimensions
It might actually be that your server can run exif_read_data() on those images, but it could also fail, in which case the entire dir will fail to load. You can try yourself if you want to. Locate line 2212:
// get image Exif if we anticipate memory is sufficient
if($this->memory_sufficient_exif()) $this->image['exif'] = Exif::get($this->realpath);
Remove the check:
// get image Exif if we anticipate memory is sufficient
/*if($this->memory_sufficient_exif()) */$this->image['exif'] = Exif::get($this->realpath);
After editing the code, you would need make a change to the folder (add or rename a file) so that cache gets refreshed. You don't have to test this yourself of course, but I wanted to make it clear what is causing the issue, and that we can't just remove the memory check. Another solution would be to increase your servers memory_limit from 128M to a higher value, for example 256M.