Turning off auto-grid-images?

Is there a way to turn off “auto grid images”? :thinking:

re:

4 Likes

Or a way to change the number of images attached before it auto grids them?

I can’t seem to find anything relating to this setting in the admin control panel.

2 Likes

I really really really want to get a setting to turn this off. And I’m not alone, because every active users of mine dislike big time grid/masonry view.

1 Like

The MIN_IMAGES_TO_AUTO_GRID variable is in /app/assets/javascripts/discourse/app/lib/uppy/composer-upload.js

const MIN_IMAGES_TO_AUTO_GRID = 3;
if (this.#consecutiveImages?.length >= MIN_IMAGES_TO_AUTO_GRID) {
    this.#autoGridImages();
}

I suspect that because the MIN_IMAGES_TO_AUTO_GRID number is hard coded, there is no way for us to change this value? :thinking:

Three is a very low number to auto-implement this :confused:

There’s currently no setting to disable or change how auto-gridding works. It’d be helpful for us to understand your concerns or problems with how this feature works today so that we can determine the best path forward.

If you’d like to see changes to how this works now, could you please share some more details about what’s not working well today and how that’s causing problems for you or your community?

2 Likes

It looks bad? That is really valid reason.

This is from iPhone 15+, not the narrowest one, but not too wide either.

Users just don’t want to see such buch of images, specially when those would have different aspect ratios. Theirs mobiles are capable of to show images right one after one.

We have an option to not use automatic lists. But now I have to teach to users, who are already scared of Discourse editor and for them strange looking markings, how to edit [grid] away.

And that’s why we need one setting more or this should be an component. This time improvement wasn`t an improvement, sorry.

2 Likes

Hello :wave:

I also would like to ask to keep it behind a site setting. I like it but the way it works not really. I mean with adding the [grid][/grid] tags, people can easily break the images grid view. I understand why this is important, but we just don’t have enough time to fix these broken grid galleries after non-tech users all the time. We would like to keep it simple as possible.

Plus this only works if the images are uploaded at the same time. If they are uploaded one after the other, it will not detect this and will not automatically insert the grid view.

We have been using the Masonry Image Gallery theme component for a long time which is automatically makes it without using tags.

I would like much more the core version but unfortunately that is less user friendly yet. :confused:

4 Likes

Thanks Lindsey :slight_smile:

Our community is a very heavy user of photographs, with over half a million images on our Discourse now.

One of the problems we face with auto-grid being automatically applied is that 99% of our users don’t know what it is, that it is being applied, nor how to remove it.

Why might this be an issue?

~96% of the photos our community shares are landscape in orientation, not portrait.

Auto-gridding crops the images a user uploads rather dramatically, chopping the edges off and turning landscape photos in to portrait photos to the naked eye :cry:

One community member even accused us of modifying their photos.

There is perhaps some irony in my landscape screen shots that I just uploaded now not being landscape :pensive:

Our fear is that we are just several days in to this new feature, I can’t imagine what the coming weeks and months will be like :see_no_evil:

6 Likes

Thanks for all the feedback shared here so far — we’ll chat about this internally and I’ll report back!

In the meantime, please feel free to continue to share insights on how this is working out (or not!) in your community.

4 Likes

I like it, ive been using the grid function for sometime

2 Likes

This seems like a very obvious thing to have in the settings. I’ve recently updated my site without knowing this was pushed and after one day I’ve already seen the [grid] text show up in posts because people don’t have the technical understanding of what it’s doing or what it means. I’ve also received a complaint that it’s automatic.

The grid in our toolbar is Masonry Image Gallery, which I think works better generally because it doesn’t crop the image (but there are a few cases where [grid] is preferred). So having [grid] show up now is confusing.

4 Likes

You get these appearing randomly too?

:see_no_evil:

3 Likes

Yep, exactly

3 Likes

Yeah, these kind of things I’m talking about here:

3 Likes