Limit image size uploaded

Dec 24, 2012 at 3:57 PM

Is there a way to do this? Limit width and height and/or file size?

Dec 24, 2012 at 6:44 PM

Hmm, you used to be able to set the max attachment size per forum or forum group.   It looks like the attachment settings is gone now.

But...  Even if you set the max attachment size, there was no way to have AF automatically resize image attachments to fit within a specific height/width.

This is something that I wanted to do as well since I had people always posting giant images that broke my site layout.

The trick is to add the appropriate CSS to force max height and/or width on any images included in the body of a post.

Here's the CSS that I use:

.afpostbody img {  max-width800px !important; }
I just add it to my site CSS in my site settings.
-JB
Dec 25, 2012 at 9:06 AM
Edited Dec 25, 2012 at 11:16 AM
jbrunken wrote:

 

.afpostbody img {  max-width800px !important; }
I just add it to my site CSS in my site settings.
-JB


Good idea. I'll reuse your CSS add on. My themplate and layout may be not compromised.

CSS Added! Work great! Waiting for a feauture in AF that may auto resize images is a good way.

Dec 25, 2012 at 11:51 AM

 

You add that in the stylesheet editor ?

Dec 25, 2012 at 2:30 PM
In admin / site / css stylesheet

Inviata dal mio Windows Phone

Da: zaratustra
Inviato: ‎25/‎12/‎2012 12.51
A: theo@netraiders.net
Oggetto: Re: Limit image size uploaded [activeforums:415361]

From: zaratustra

You add that in the stylesheet editor ?