Width limit of the [img] tag

Moderators: Gossamer, purple_cat

Locked
User avatar
Timiz0r
Posts: 103
Joined: Thu Oct 31, 2013 1:10 pm
Location: Orlando, FL
Contact:

Width limit of the [img] tag

Post by Timiz0r » Mon Nov 04, 2013 11:35 am

There's definitely a lot more important stuff to get done, I'm sure, but I've got something that could maybe be done eventually.

When I tried to add an image to a post that was too large, I got this message:
Your images may only be up to 1200 pixels wide.
I noticed that this was larger than the max width of a post, so I did some testing. It seems the image gets cut off, rather than resized. There is also no way of scrolling to see the image in the post itself.

Here's a demo:
Image
The image is 1200px in width, but it is cut off.

The current maximum width of that specific portion of the forum is about 700px.

I would say the best solution is to modify the BBCode img tag to scale the image. I believe this is usually done by modifying the includes/bbcode.php file. Adding style="max-width: 100%;" appears to work.

Otherwise, I'm sure the 1200px value can be adjusted somewhere.
Snappy + Whisk > All :DDDD
Image

User avatar
Maiden Heaven
Posts: 246
Joined: Thu Oct 17, 2013 4:10 pm

Re: Width limit of the [img] tag

Post by Maiden Heaven » Mon Nov 04, 2013 5:51 pm

Thank you for all your help here it is appreciated. :) Adding the images are a great help too. :thumbup:

We have noted the img issue & will look into it. Thanks again.
Every passing minute is another chance to turn it all around..~It's My Secret~
"Until mankind can extend the circle of his compassion to include all living things, he will never, himself, know peace." - by Albert Schweitzer

User avatar
FFRCAdmin
Site Admin
Posts: 38
Joined: Thu Sep 19, 2013 8:15 pm

Re: Width limit of the [img] tag

Post by FFRCAdmin » Wed Nov 06, 2013 8:00 pm

Fixed this, thanks Tim! Your change was exactly what was needed!
:thankyou2:
Linda (I'm also Gossamer) ~ Furkids Samantha and Tabitha 10 yr old Orangie Sisters.
I have two accounts for testing purposes....so if you see either FFRCAdmin or Gossamer that's me.

User avatar
Timiz0r
Posts: 103
Joined: Thu Oct 31, 2013 1:10 pm
Location: Orlando, FL
Contact:

Re: Width limit of the [img] tag

Post by Timiz0r » Thu Nov 07, 2013 8:23 pm

Woo the test image is now fully visible :D
Snappy + Whisk > All :DDDD
Image

Locked