cancel
Showing results for 
Search instead for 
Did you mean: 

Scaling oversized inline images

Anonymous
Not applicable

Scaling oversized inline images

Is it too much to ask that images over a certain size be automatically resized when displayed in the page. I've just seen a post where there is an image of the dsl checker and it extends to easily twice the size of the page.

31 REPLIES 31
jaread83
Community Gaffer
Community Gaffer
Posts: 3,438
Thanks: 2,336
Fixes: 81
Registered: ‎22-02-2016

Re: Scaling oversized inline images

Do you have a link to the post?

Frontend Web Developer | www.plus.net

If you have an idea to improve the community, create a new topic on our Community Feedback board to start a discussion about your idea.

Oldjim
Resting Legend
Posts: 38,460
Thanks: 787
Fixes: 63
Registered: ‎15-06-2007

Re: Scaling oversized inline images

Just tried it both by uploading and via a URL and it just takes up the width of the window

Oldjim
Resting Legend
Posts: 38,460
Thanks: 787
Fixes: 63
Registered: ‎15-06-2007

Re: Scaling oversized inline images

Now this is interesting

@jaread83 I tried with an uploaded image and a URL and it didn't happen so I had several fiddles with the html code and that didn't do it either so I edited the post again (after several edits) to remove the picture and guess what - it hasn't been posted and there was a note that it will be posted after it is approved

jaread83
Community Gaffer
Community Gaffer
Posts: 3,438
Thanks: 2,336
Fixes: 81
Registered: ‎22-02-2016

Re: Scaling oversized inline images

That would mean that the image got flagged for moderation. We don't have that feature turned on at the moment unless someone else has turned it on... or trying to upload images in that way triggered it.

I would imagine that you can get around scaling of images by inserting an externally hosting image into a standard <img> html tag which is why I'd like to see that post to see if that is the case.

Frontend Web Developer | www.plus.net

If you have an idea to improve the community, create a new topic on our Community Feedback board to start a discussion about your idea.

jaread83
Community Gaffer
Community Gaffer
Posts: 3,438
Thanks: 2,336
Fixes: 81
Registered: ‎22-02-2016

Re: Scaling oversized inline images

@Oldjim - I just had a look at your uploaded images and none have been flagged for approval or are awaiting approval. I also checked the admin panel and image moderation is switched off for the entire community.

Frontend Web Developer | www.plus.net

If you have an idea to improve the community, create a new topic on our Community Feedback board to start a discussion about your idea.

Anonymous
Not applicable

Re: Scaling oversized inline images

@jaread83 - Sorry for the delay but I am sure that it was this post here but I can't be 100% positive but the times do match, but I now see that the post has been edited.

jaread83
Community Gaffer
Community Gaffer
Posts: 3,438
Thanks: 2,336
Fixes: 81
Registered: ‎22-02-2016

Re: Scaling oversized inline images

Nothing seems to be amiss here. The image is only 550px wide and I have some CSS in place to have height: auto; and max-width: 100%; so it should scale down to the parent container if it was to try to break out and cause layout issues. I will keep my eye out but if you see any strange behaviour with images let me know and I will investigate further.

Frontend Web Developer | www.plus.net

If you have an idea to improve the community, create a new topic on our Community Feedback board to start a discussion about your idea.

Oldjim
Resting Legend
Posts: 38,460
Thanks: 787
Fixes: 63
Registered: ‎15-06-2007

Re: Scaling oversized inline images

@jaread83 I wasn't the image it was when I removed it - could it be in the spam filter - and it hasn't appeared yet

jaread83
Community Gaffer
Community Gaffer
Posts: 3,438
Thanks: 2,336
Fixes: 81
Registered: ‎22-02-2016

Re: Scaling oversized inline images

ha... yep.. spam filter... let me release that for you

Frontend Web Developer | www.plus.net

If you have an idea to improve the community, create a new topic on our Community Feedback board to start a discussion about your idea.

Oldjim
Resting Legend
Posts: 38,460
Thanks: 787
Fixes: 63
Registered: ‎15-06-2007

Re: Scaling oversized inline images

To which the next question is why was it there - does anyone actually know how it works

jaread83
Community Gaffer
Community Gaffer
Posts: 3,438
Thanks: 2,336
Fixes: 81
Registered: ‎22-02-2016

Re: Scaling oversized inline images

Just tested adding an extremely large image file (3782 x 2592) to posts using 3 different methods:

1. Using the image upload modal to upload the image here

2. Using the image upload modal and selecting 'from url'

3. Switching to HTML tab and inserting standard <img src="" />

All three images came back looking exactly the same. The image I used was this (link to wikipedia image)

As for the spam filter, we do not know what algorithm it uses to determine whether a post is spam or not. It has caught a lot of legitimate spam though! Sometimes real posts get caught but after we mark it as 'not spam' the system should learn from that.

Frontend Web Developer | www.plus.net

If you have an idea to improve the community, create a new topic on our Community Feedback board to start a discussion about your idea.

Anonymous
Not applicable

Re: Scaling oversized inline images

@jaread83 - OK just saw this but in case it changes here's an image.

Screen Shot 2016-07-07 at 12.42.52.png

As you can see the image is way to large for the container. I have just viewed the link from above and the image scales correctly. My image above was taken from this URL, and not the link.

jaread83
Community Gaffer
Community Gaffer
Posts: 3,438
Thanks: 2,336
Fixes: 81
Registered: ‎22-02-2016

Re: Scaling oversized inline images

My CSS only applies to the post content so this is something I need to look into for the unread posts/threads page with the 'display text' enabled.

Added to my bug list to look at.

Frontend Web Developer | www.plus.net

If you have an idea to improve the community, create a new topic on our Community Feedback board to start a discussion about your idea.

jaread83
Community Gaffer
Community Gaffer
Posts: 3,438
Thanks: 2,336
Fixes: 81
Registered: ‎22-02-2016

Re: Scaling oversized inline images

@Anonymous, that isn't an image, its a table.

There is some CSS specifically for tables in the unreadposts page so i just need to override that.

Frontend Web Developer | www.plus.net

If you have an idea to improve the community, create a new topic on our Community Feedback board to start a discussion about your idea.