1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Adjusting the media size within a post

Discussion in 'Media Gallery Support' started by Dennis B, Jun 12, 2015.

  1. Dennis B

    Dennis B Member


    Sorry if this has been asked before.
    Regular images on my forum are displayed much larger than the "thumbnails" inserted into posts. It seems that the "thumbnail" option in XFMG options applies to those shown within the XFMG pages, but not regular posts.
    How can I change the dimensions of the thumbs shown in posts?

  2. Chris D

    Chris D XenForo Developer Staff Member

    In posts we actually display the full size image and shrink it down with CSS. This is usually the desire and it means the aspect ratio of the original image is retained which is better for viewing purposes.

    The CSS that controls the size is in this template: xengallery_bb_code_tag_gallery.css

    Specifically you may wish to adjust this to something you feel is more suitable:
    .GalleryLazyLoader .galleryBbCode .Panes
        max-height: 400px;
        overflow: hidden;
    .GalleryLazyLoader .galleryBbCode .galleryImage
        max-height: 350px;
    Infopro and Dennis B like this.
  3. Dennis B

    Dennis B Member

    Hi Chris,

    Thanks for the quick answer.

    What happens is that I have an active Photography section, but users usually host their images somewhere else, because they show up in full width within the posts, limited by the post width of course. You could expand images even more by clicking on them, but on a regular monitor you wouldn't even have to. People like this, it's all there, just scroll down, no additional clicking/redirecting needed.

    When I suggested that people start uploading their images to XFMG, taking advantage of the integration features, most liked the idea and the extra information, exif, etc, except for the fact that images were shown as thumbnails, so now everyone pretty much has to click on every image which is annoying to most.
    Last edited: Jun 12, 2015
  4. MstrfBlng

    MstrfBlng Active Member

    @Chris D I wanted to change the .galleryImage, but in your example there is also a .Panes where is this one used? I can't seem to find it on our forum.

Share This Page