• Resolved Tamie

    (@tamierp)


    Hello!
    Thank you for this plugin!

    I am wondering if there is a way that I can restrict the image size that is posted?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Marcel Pol

    (@mpol)

    Hi Tamie,

    I suppose you mean images through the BBcode editor?
    The filesize can not be set. What can be set is the maximum width for how it is shown.

    The plugin has this CSS:

    .gwolle-gb .gb-entry .gb-entry-content img {
    	max-width: 100%;
    }

    You could change it to a different percentage. The element that is being targeted would need to be more specific then, like this:

    html body .gwolle-gb .gb-entry .gb-entry-content img {
    	max-width: 80%;
    }

    This Custom CSS can be added in Appearance > Customizer > Custom CSS.

    • This reply was modified 2 years, 6 months ago by Marcel Pol.
    Thread Starter Tamie

    (@tamierp)

    Hello!

    Thank you for your quick response.

    I apologize I should clarify. The guests must insert an image via URL. Which is great, however when I tested the image shows image at full-size. This could be a problem if they’re image is huge.

    Thank you again for your help. I will add the css.`

    Plugin Author Marcel Pol

    (@mpol)

    Hi Tamie,
    No need to apologize, I have had more ambiguous questions ??

    If the CSS is good for you then that might be all you really need. Though I do understand that you also want smaller file size of images in that case.
    But I see no way to enforce that, unless the image is being downloaded first and then it would need to find a different file size from that remote website.

    Thread Starter Tamie

    (@tamierp)

    Thank you. This was very helpful. Is there a way to set a certain size, for example 500px high? I tried this:

    width: auto,
    height: 500px;

    but it did not work.

    Thread Starter Tamie

    (@tamierp)

    I might be using “auto” incorrectly. I thought it would adjust according to the other number, but must not. I looked around on the internet and found this:

    img {
      display: block;
      max-width:500px;
      max-height:500px;
      width: auto;
      height: auto;
    }

    Not sure if it is the best solution, but it worked.

    Plugin Author Marcel Pol

    (@mpol)

    Hi Tamie,
    Thank you for the feedback.
    In the CSS for the plugin I also added this max-height. Other people may find it usefull as well.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Image Size’ is closed to new replies.