We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38318
    • 128 Posts
    I've set up a gallery which shows thumbnails and on click displays a large image. This has been working fine but now some of the images are showing a missing icon for the large although the thumbnail is there. Looking at firebug, code below, the images appear to be coming from the same place and the images are on the server so what could be causing the missing image?

    Here is a working image
    <a href="/assets/components/gallery/connector.php?action=web/phpthumb&w=0&h=0&zc=0&far=&q=90&src=%2Fassets%2Fgallery%2F7%2F42.JPG">
    <img class="" alt="Cranbrook, Kent" src="/assets/components/gallery/connector.php?action=web/phpthumb&w=0&h=0&zc=0&far=&q=90&src=%2Fassets%2Fgallery%2F7%2F42.JPG">
    </a>


    Here is a not working image
    <a href="/assets/components/gallery/connector.php?action=web/phpthumb&w=0&h=0&zc=0&far=&q=90&src=%2Fassets%2Fgallery%2F7%2F44.JPG">
    <img class="" alt="Dallington, East Sussex" src="/assets/components/gallery/connector.php?action=web/phpthumb&w=0&h=0&zc=0&far=&q=90&src=%2Fassets%2Fgallery%2F7%2F44.JPG">
    </a>
      • 38318
      • 128 Posts
      I've worked out it's to do with file size. If I reduce the file size by half it displays. Is there somewhere I can change the maximum file size? It's being uploaded ok though just not displaying if a larger image.
        • 35715
        • 59 Posts
        What filesize are the files in question?
          • 38318
          • 128 Posts
          For example one was 4.1MB (37cm wide) but when reduced to 3.3MB (18cm wide) it was fine. I'm not sure whether it's the file size or the actual dimensions of the photo?
            • 35715
            • 59 Posts
            Oh, I suppose that is quite large. I'm only using gallery for sliders with everything under 100kb! What if you force some pixel dimensions instead of &w=0&h=0 ?
            • It may be that the server is running out of memory for processing such a large image. Does your system have ImageMagic installed?
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 38318
                • 128 Posts
                Thanks, the width is already forced to 940px.

                Is ImageMagic a plugin or a server install?

                In the meantime I'll get the client to limit the size of the images they upload.
                • Both. It has to be installed on the server, and PHP has to have the extension to use it.
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org