completed Renamed Gallery on a member Profile - now have two galleries

Clay Gordon
Clay Gordon
@claygordon
10 years ago
744 posts
http://www.thechocolatelife.com/vera-hofman/gallery

I sent instructions to this member on how to organize their imported photos and did the work for some of the steps.

The default gallery is Vera Hofman, the member's name. I clicked on the gear icon, changed the name (to unsorted images), saved changes ... and now there are two albums. They appear to contain the same images, though the sort order is different.
jpg
 •  219KB


updated by @claygordon: 02/23/15 05:06:21PM
paul
@paul
10 years ago
4,335 posts
I've just looked at http://www.thechocolatelife.com/vera-hofman/gallery/unsorted-images/all and http://www.thechocolatelife.com/vera-hofman/gallery/vera-hofman/all side by side and I'm not seeing any common images.
Not checked every image go course, but a few picked at random were not common.


--
Paul Asher - JR Developer and System Import Specialist
Clay Gordon
Clay Gordon
@claygordon
10 years ago
744 posts
But why was a second gallery created in the first place? I renamed one and ended up with two.

And I think I know why. Somewhere ... there is a hard-coded limit of 500 on the number of images in a gallery.

This user has 548 images. 500 went into the renamed gallery and 48 are in the Vera Hofman gallery. There is an odd number of images in the unsorted gallery, which is what you'd expect when I moved one into another gallery. I am not going to count rows to verify that there are 499 images left in the renamed gallery, but 499 modulo 8 is 3, and that's the number of images in the bottom row.
brian
@brian
10 years ago
10,148 posts
For a gallery rename there shouldn't be a limit - it's an SQL query that is run to update the key whether it matches 1 or 10000 images. I'll check it out and see if I can spot any issues.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
10 years ago
10,148 posts
Just checked the code and you are correct - have no idea why it was done that way, but will get it fixed.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
paul
@paul
10 years ago
4,335 posts
You're right. Have just looked at the gallery module code and there are hard limits of 500.
We can probably change that to a larger number. I guess we never envisaged galleries of that size until you Ningsters came along ;-)
I'll raise a ticket to get it done.
You should be able to change the names of both galleries independently though to what you what now.
Thanks


--
Paul Asher - JR Developer and System Import Specialist
Clay Gordon
Clay Gordon
@claygordon
10 years ago
744 posts
It occurred to me, as I was pondering why there might be an image gallery limit and that's because you were focused on music, not images, and images put up by bands, etc, would probably be thematically related: here are the photos and videos from last night's gig. Those would probably be relatively small numbers.

I have one member with over 1000 images in one gallery, 1072 to be precise: http://www.thechocolatelife.com/sera.
paul
@paul
10 years ago
4,335 posts
You're probably right. Gallery was one of the first modules after we started JR5 and then we couldn't conceive of anyone with more than 500 photos!!
Brian has seen the ticket and is fixing it up as we speak.


--
Paul Asher - JR Developer and System Import Specialist
brian
@brian
10 years ago
10,148 posts
I've got this fixed up in Image Galleries 1.5.1 - update and it should be fixed. I optimized how the update is done (as a bulk update) and should work on galleries up to 25,000 images now.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Clay Gordon
Clay Gordon
@claygordon
10 years ago
744 posts
Limits? Where we're going we don't need no stinking limits!

I only have about 26,000 image files in the photos directory of my computer. Just shy of 124GB. I would reach the limits of my Arvixe "unlimited" hosting account well before I reached the limit of the new bulk rename function. Not to mention testing the limits of my patience given the upload speeds I have available to me.

25k? I would have thought some nice binary number - 16k, 32k, or something like that.

Tags