I’m using the Gallery Extra for a simple image gallery.
It all works fine, but if I have too many images in there, it causes an error on iOS16 on iPhone.
I’ve checked the PHP INI file, and the memory limit is set to 1024M which I would have thought would be enough?
Anything else I can try?
I have 72 images in the gallery - so it’s not huge!
It’s on the front end. Yes that’s a good point - I just wondered if iOS on certain devices were more sensitive to the memory it’s using? (I’m clutching at straws i know!)
Weirdly, I’ve tried on an older iPhone (iPhone XS) running iOS16 and it’s fine! So it isn’t just the OS, but the model of iPhone! (iPhone 12)
I am loading the thumbnail AND the larger image for the CSS modal.
The images are hosted on a CDN called IMGIX - but I have tried it with the images hosted locally and it’s still the same problem.
The imgx output modifier works similar to pthumb, but it’s more intelligent - it crops the photo with facial recognition, and serves the images from an External CDN. You’re correct, I’m not using the gallery thumbnail at all.
The original images are uplaoded to the server via the gallery extra, so the gallery items are all created in Gallery - it’s just that the thumbnails and larger versions are created and stored within Imgix.
That’s corret I’m using the IMGIX extra.
But the issue occurs even if I change the chunk to bypass imgix and use pthumb.
I just recreated the gallery using migx instead, and it works better - but is a little clunky.
The main use for this is the Face recognition to be honest - the thumbnails are brilliant - whereas with pthumb they are pretty uncontrollable so end up cropping of heads!
A client-side memory error sounds to me like JavaScript is probably involved. Maybe a gallery or lightbox script that is trying to (pre)load the images into memory?
Could also use MoreGallery with the manual cropper to have full control over the thumbnails. Just to offer another alternative to Gallery and MIGX.
Ah Ok Mark thanks. The lightbox is pure CSS so can’t be a JS error
I’d love to use MoreGallery, but the problem is there are a lot of imags, so it’s nice that the facial recognition can crop all the thumbnails nicely without manually cropping - but will bear it in mind for future projects!
Load up dev tools (ctrl-shift-i) and try it. Check the Console tab for errors, and the Network tab (after clearing it and reloading the page) for clues about where it’s breaking down.