Is there a limit as to number of the photos used in the gallery?

Permalink Browser Info Environment
I tried using the gallery and was getting some very odd behavior:

I could place the block on a page, and choose an existing set, but when I clicked ADD it did not show any images. When I clicked EXIT EDIT MODE the page displayed but rendering halted at the area the gallery was placed. When I clicked EDIT PAGE the entire page failed to load (no code output at all to browser).

I could delete the last entry in the Blocks table to restore that page rendering.

Uninstalling the add-on and reinstalling the add-on there is no change.

The photos in the set are quite large in size, i wondered if this made any difference...

In the end I reduced the number of photos in the set from 37 down to 18 and that seemed to work, so is there a limit of up to 18 photos per gallery block??

Type: Discussion
Status: New
adavis
View Replies:
adavis replied on at Permalink Reply
adavis
Hmm No it looks like there was one bad egg image causing the block to crash. I cant figure exactly WHY, but remaking it and replacing it in the set seems to fix the issue. Weird.
jordanlev replied on at Permalink Reply
jordanlev
There is a limit to the number of images, but I'm not sure exactly what it is (it depends on the speed of the web server, the file size of the original image, and the desired dimensions of the thumbnails).

What happens is that Concrete5 generates thumbnails of every gallery image the first time the gallery block is displayed on a page -- which is always immediately after you add or save the block. If there are a lot of images, it can take the system a long time to generate all of the thumbnails. How many images is "too many"? Again, it depends on the server. Some people have had trouble with 50 or so images, others don't hit the limit until they get over 100. Another user had over 100 images that worked just fine as long as their thumbnails were 100px wide and high, but when they wanted 200px thumbnails then it failed.

It sounds like in your case it doesn't have to do with the number of images (nobody has ever reported a problem with only 18 or 37 images), but rather one troublesome image. I have no idea why this would be the case -- is there anything special about that image? Is it the only JPG (everything else is a PNG) -- or vice-versa? Is it larger in dimensions than the rest? Is it a larger file size than the rest? Maybe it just got corrupted somehow during upload -- in which case all you can do is recreate the image and re-upload it, which is what you did.

Glad you got it figured out. Please let me know if you run into any other issues.

-Jordan

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.