Simple Machines Community Forum

SMF Development => Feature Requests => Applied or Declined Requests => Topic started by: nax on August 25, 2008, 02:15:57 PM

Title: Restrict linked image file size
Post by: nax on August 25, 2008, 02:15:57 PM
Although there are settings within the software to restrict the number of pixels at which an image will be displayed within the forum, this doesn't help the page load time if the original image is massive.

I would like to see an option the would reject linked images over a certain size in kilobytes.  Most linked  images in our forum would benefit from being no larger than 250kb.

I can't find an easy way / mod to do this.
Title: Re: Restrict linked image file size
Post by: 青山 素子 on August 25, 2008, 06:47:14 PM
The problem is that you really can't tell the size of a linked image unless you try downloading it directly.
Title: Re: Restrict linked image file size
Post by: nax on August 26, 2008, 10:58:30 AM
I know, this is why it would need to be a mod that somehow establishes the original image size and either processes it or rejects it.  As cameras get more pixel intense image sizes are going up but people still on dial up are finding pages containing linked images are getting slower and slower. :(
Title: Re: Restrict linked image file size
Post by: aldo on August 26, 2008, 01:33:53 PM
That would be a good idea, however it would require a complicated setup, or something, or else if they had lots of images in one post, it would take quite some time to process those images and see if they are not to big
Title: Re: Restrict linked image file size
Post by: 青山 素子 on August 26, 2008, 01:38:20 PM
Don't forget that since it is linked, it is easy to replace the one that was checked with a different one later to get around restrictions. The way to fix that issue is to do a check each time the post loads, but that creates even bigger issues (server bandwidth exhaustion, page load timeouts, etc).