View Full Version : Max Image (File) Size Restriction Demo

04-15-2012, 06:15 PM
With image resizer mods being popular users who page images sometimes neglect to account for the file sizes of the images they post.

Large file sizes is what slow down page load times- not necessarily large images. Some digital cameras create JPG images 10 to 100 times larger than they need to be. This can quickly add up when someone posts a few to your forum pages.

This mod will check every image inside an [IMG] bbcode and if the file size is too big it will convert the the image to a link instead. Optionally it will post the file size next to the link as well.

For Qapla.com I have the max file size limit set to 1 Megabyte (or 1024 kB).

You can try to link to a large image in this thread. Here is an example of what will happen:

http://www.qapla.com/ju/DSC01848.JPG (1406 kB)

The mod works in threads- in new threads, new replies, and post edits.

Edits are done before the post is saved so it will not work on existing posts.

The mod is available for free here.

04-17-2012, 02:17 PM
I like it!!!

04-19-2012, 07:26 AM
Testing version 1.2- no real changes on the outside- just a little different coding to prevent issues with a couple other mods.

Large Image Link (http://www.qapla.com/ju/entcenterbig.jpg) (1429 kB)