1 (edited by Tigerent 2018-02-12 09:08:10)

Topic: iPhone Gallery Display

I have many galleries on my web site which display perfectly well on various browsers on PCs as well as on Android devices. However the display on iPhones is either just the first image or a page not found error. Any ideas, please?

Example gallery: http://www.stgeorgesyork.co.uk/OtherSch … lfsJun.htm

Re: iPhone Gallery Display

However the display on iPhones is either just the first image...

It sounds like you are describing the Splash Page.

The Splash Page is a placeholder for the gallery which is displayed by default on small screen devices when the gallery is embedded in a web page alongside other content (rather than displayed on a page of its own with dimensions of 100% x 100%, filling the browser window) and may may too small to be usable.
The Splash Page is essentially an image link for the gallery which displays an image (by default, the first image in the gallery) and some text.
When the user clicks or taps the Splash Page, the gallery is expanded to fill the browser window (giving the images more space to be displayed).
When the gallery is expanded in Small Screen Mode, the user is presented with a page of thumbnails from which a main image can be selected. When a thumbnail is clicked, the thumbnail page is replaced with the chosen image. (In Small Screen Mode, the thumbnails and main images are displayed on different pages to maximize the area available for the images on small screen devices.) The user can return to the thumbnail page via the Thumbnail Button on the gallery's Button Bar.
More information about the Splash Page can be found in the Screen Modes section of the Gallery Tour.

By default, the Splash Page uses the first image in the gallery and scales the image to fill (rather than fit within) the Splash Page (which uses the gallery dimensions). If the image does not have the same aspect ratio as the gallery/Splash Page, then cropping will occur.
There is no way to change the scaling behavior for the Splash Page image but you can choose an image to be used for the Splash Page via the splashImageUrl configuration option.
The splashImageUrl can be an absolute path or a relative path (relative to the web page containing the gallery's embedding code).
The splashImageUrl does not need to be a gallery image so you could perhaps prepare an image that represents your gallery and looks better at the gallery/Splash Page dimensions.

You can choose to not use the Splash Page by setting showSplashPage="NEVER" ('Customize -> Splash Page' section). Using this setting, the thumbnail page would initially be displayed instead of the Splash Page on small screen devices.
Alternatively, you could force the gallery to be displayed in Large Screen Mode (which, by default, does not use the Splash Page) on all devices and in all browsers by setting screenMode="LARGE" ('Customize -> General').

For reference, all the Splash Page configuration options can be found here.

... or a page not found error.

I think the error 404 (file not found) when expanding your gallery from the Splash Page is due to your gallery's embedding code being enclosed within the gallery container. (i.e. you have the opening <div> tag before the embedding code and the closing </div> tag after it).
Take the embedding code outside the gallery container and this should solve your problem.

Incidentally, I notice that your web page contains several HTML errors.
You can check your page for HTML errors with the W3C Markup Validation Service and then fix the errors reported.
Once the code on your web page validates correctly, your web page should be rendered with greater consistency and predictability across different browsers.

I hope this helps.

Re: iPhone Gallery Display

Thanks for that - it's given me a couple of things to try. I don't think it's the Splash screen issue though as users say they can't get to any more pictures whereas Android users can. These issues occur only on iPhone 6 onwards. Windows PC & Apple browsers, including Safari, iPads etc don't seem to have a problem. Just the ***** iPhone!

Unfortunately (fortunately?) I don't have an iPhone so it's hard to test.

Thank you for your advice.

Re: iPhone Gallery Display

It looks like you have now fixed the error 404 problem with the expanding gallery.

I have an iPod Touch 6 running iOS 11.2.5 (the latest verison of iOS).
When I open your gallery's web page in Mobile Safari, I see the Splash Page (as expected on a mobile small screen device).
When I tap the Splash Page, your gallery expands to fill the browser viewport and I can navigate through all your images (by swiping left and right) or via the thumbnails (by tapping the Thumbnail Button and selecting an image).
It looks like your gallery is working fine (at least on my iPod Touch 6).

Maybe it would help if the browser's cache was cleared on the iPhone that you've seen the problem in .

It's also possible that the iPhone that fails to display your gallery is viewing your website over a 3G/4G connection instead of wi-fi.
If this is the case, then please see this FAQ for further details and a solution.
Why can't I view my gallery on a 3G mobile connection?