Jump to content

Image auto resize?


Recommended Posts

  • Other Languages Moderators

There's problem with the images on the forum, the image that does not fit with the forum style size will be cut off from the right side. This annoying because right now to see the whole image we have to open it in new tab on the browser.

I thought about something like image auto resize but not sure if it possible with phpBB. :roll:

Another thing can be done like adding the horizontal scrollbar but it may make the forum looks ugly. :?

Link to comment
  • 2 weeks later...
  • 2 weeks later...

In SMF forums, you can specify a custom width and height directly in the img tag, but it doesn't work with phpbb, however adding this:

 .postbody img { 
    max-width:100%; 
} 

in the file: "common.css", will scale any image, as lopezloo suggested. Imgur also has a feature to create a thumbnail which fits pretty good in a post here, however since you're not hosting the images yourself, large images won't affect the performance in this forum anyway, it's much easier for the end users with automatic scaling.

Link to comment
In SMF forums, you can specify a custom width and height directly in the img tag, but it doesn't work with phpbb, however adding this:
 .postbody img { 
    max-width:100%; 
} 

in the file: "common.css", will scale any image, as lopezloo suggested. Imgur also has a feature to create a thumbnail which fits pretty good in a post here, however since you're not hosting the images yourself, large images won't affect the performance in this forum anyway, it's much easier for the end users with automatic scaling.

Good :wink:

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...